Update libarchive error handling; improve error message formatting
This commit is contained in:
1 parent
74ed496b20
commit
1fb18d583a
1 file changed
+1
-1
@@ -31,4 +31,4 @@ for infile in args.infile:
|
||||
try:
|
||||
hash_files_in_archive(infile)
|
||||
except libarchive.exception.ArchiveError as e:
|
||||
sys.stderr.write(f'Failed to open archive file {infile}: {e}\n')
|
||||
print(f'Failed to open archive file {infile}: {e}\n', file=sys.stderr)
|
||||
Reference in new issue
Block a user