summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool
index fd4af9838a..fa799f6a06 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -35,6 +35,7 @@ context = None
35scripts_path = os.path.dirname(os.path.realpath(__file__)) 35scripts_path = os.path.dirname(os.path.realpath(__file__))
36lib_path = scripts_path + '/lib' 36lib_path = scripts_path + '/lib'
37sys.path = sys.path + [lib_path] 37sys.path = sys.path + [lib_path]
38from devtool import DevtoolError
38import scriptutils 39import scriptutils
39logger = scriptutils.logger_create('devtool') 40logger = scriptutils.logger_create('devtool')
40 41
@@ -250,7 +251,12 @@ def main():
250 if args.subparser_name != 'create-workspace': 251 if args.subparser_name != 'create-workspace':
251 read_workspace() 252 read_workspace()
252 253
253 ret = args.func(args, config, basepath, workspace) 254 try:
255 ret = args.func(args, config, basepath, workspace)
256 except DevtoolError as err:
257 if str(err):
258 logger.error(str(err))
259 ret = 1
254 260
255 return ret 261 return ret
256 262