mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Do not log entire file when singlefile creation fails.
This commit is contained in:
parent
a6647cc8f7
commit
638e92bd4e
1 changed files with 2 additions and 2 deletions
|
|
@ -86,10 +86,10 @@ class ArchiveDownloader(Downloader, ABC):
|
|||
|
||||
if not stdout or SINGLEFILE_HEADER.encode() not in stdout[:1000]:
|
||||
if logs and (stderr := logs.get('stderr')):
|
||||
e = ChildProcessError(stderr.decode())
|
||||
e = ChildProcessError(stderr.decode()[:1000])
|
||||
raise RuntimeError(f'Singlefile created was invalid: {download.url}') from e
|
||||
if stdout:
|
||||
e = ChildProcessError(stdout.decode())
|
||||
e = ChildProcessError(stdout.decode()[:1000])
|
||||
raise RuntimeError(f'Singlefile created was invalid: {download.url}') from e
|
||||
raise RuntimeError(f'Singlefile created was invalid: {download.url}')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue