Using stdout as error log when singlefile fails.

This commit is contained in:
Roland 2024-05-25 09:40:29 -06:00
parent 2ee39f0ace
commit d10a228692
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -133,6 +133,9 @@ class ArchiveDownloader(Downloader, ABC):
if logs and (stderr := logs.get('stderr') or ''):
e = RuntimeError(stderr)
raise RuntimeError(f'Singlefile created was invalid: {download.url}') from e
if singlefile:
e = RuntimeError(singlefile)
raise RuntimeError(f'Singlefile created was invalid: {download.url}') from e
raise RuntimeError(f'Singlefile created was invalid: {download.url}')
# Extract Readability from the Singlefile.