diff options
Diffstat (limited to 'scripts/lib/wic/utils/runner.py')
-rw-r--r-- | scripts/lib/wic/utils/runner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py index d27dcc7afd..5ede1929a3 100644 --- a/scripts/lib/wic/utils/runner.py +++ b/scripts/lib/wic/utils/runner.py | |||
@@ -18,7 +18,8 @@ | |||
18 | import logging | 18 | import logging |
19 | import os | 19 | import os |
20 | import subprocess | 20 | import subprocess |
21 | import sys | 21 | |
22 | from wic.errors import WicError | ||
22 | 23 | ||
23 | logger = logging.getLogger('wic') | 24 | logger = logging.getLogger('wic') |
24 | 25 | ||
@@ -72,8 +73,7 @@ def runtool(cmdln_or_args, catch=1): | |||
72 | except OSError as err: | 73 | except OSError as err: |
73 | if err.errno == 2: | 74 | if err.errno == 2: |
74 | # [Errno 2] No such file or directory | 75 | # [Errno 2] No such file or directory |
75 | logger.error('Cannot run command: %s, lost dependency?', cmd) | 76 | raise WicError('Cannot run command: %s, lost dependency?' % cmd) |
76 | sys.exit(1) | ||
77 | else: | 77 | else: |
78 | raise # relay | 78 | raise # relay |
79 | finally: | 79 | finally: |