Skip to content

Commit 4bb149d

Browse files
committed
raise error when original directory doesn't exist in extract_file
1 parent 7c406f5 commit 4bb149d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def extract_file(fn, dest, cmd=None, extra_options=None, overwrite=False, forced
423423
# change back to where we came from (unless that was a non-existing directory)
424424
if not change_into_dir:
425425
if cwd is None:
426-
_log.warning("Can't change back to non-existing directory after extracting %s in %s", fn, dest)
426+
raise EasyBuildError("Can't change back to non-existing directory after extracting %s in %s", fn, dest)
427427
else:
428428
change_dir(cwd)
429429

0 commit comments

Comments
 (0)