mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-18 06:18:25 +00:00
show prettier failure output during link archiving
This commit is contained in:
parent
ea695b8bef
commit
b1b0c8d1c5
1 changed files with 6 additions and 5 deletions
|
@ -190,11 +190,11 @@ def log_archive_method_finished(result: ArchiveResult):
|
||||||
|
|
||||||
# Collect and prefix output lines with indentation
|
# Collect and prefix output lines with indentation
|
||||||
output_lines = [
|
output_lines = [
|
||||||
'{}Failed:{} {}{}'.format(
|
'{lightred}Failed:{reset}'.format(**ANSI),
|
||||||
ANSI['red'],
|
' {reset}{} {red}{}{reset}'.format(
|
||||||
result.output.__class__.__name__.replace('ArchiveError', ''),
|
result.output.__class__.__name__.replace('ArchiveError', ''),
|
||||||
result.output,
|
result.output,
|
||||||
ANSI['reset']
|
**ANSI,
|
||||||
),
|
),
|
||||||
*hints,
|
*hints,
|
||||||
'{}Run to see full output:{}'.format(ANSI['lightred'], ANSI['reset']),
|
'{}Run to see full output:{}'.format(ANSI['lightred'], ANSI['reset']),
|
||||||
|
@ -206,3 +206,4 @@ def log_archive_method_finished(result: ArchiveResult):
|
||||||
for line in output_lines
|
for line in output_lines
|
||||||
if line
|
if line
|
||||||
))
|
))
|
||||||
|
print()
|
||||||
|
|
Loading…
Add table
Reference in a new issue