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:
Petr Zemek 2018-08-01 11:53:23 +02:00
parent 4516398389
commit c7dbcd5814

View File

@ -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)