mirror of
https://github.com/avast/retdec.git
synced 2025-03-02 18:56:51 +00:00
cmake: Print the reason when the extraction of our support archive fails.
Without this, we would not know the exact reason why the extraction failed.
This commit is contained in:
parent
4516398389
commit
c7dbcd5814
@ -89,8 +89,8 @@ def main():
|
||||
with tarfile.open(arch_path) as tar:
|
||||
try:
|
||||
tar.extractall(support_dir)
|
||||
except tarfile.ExtractError:
|
||||
print('ERROR: failed to unpack the archive')
|
||||
except tarfile.ExtractError as ex:
|
||||
print('ERROR: failed to unpack the archive', ex)
|
||||
cleanup(support_dir)
|
||||
sys.exit(1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user