summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/wrap/wrap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index a1bf72511..21a5c5d22 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -569,7 +569,10 @@ class Resolver:
if 'lead_directory_missing' in self.wrap.values:
os.mkdir(self.dirname)
extract_dir = self.dirname
- shutil.unpack_archive(path, extract_dir)
+ try:
+ shutil.unpack_archive(path, extract_dir)
+ except OSError as e:
+ raise WrapException(f'failed to unpack archive with error: {str(e)}') from e
def get_git(self) -> None:
if not GIT: