diff options
Diffstat (limited to 'scripts/lib/devtool/__init__.py')
-rw-r--r-- | scripts/lib/devtool/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 77b1fd90a9..65eb4527bc 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py | |||
@@ -26,10 +26,11 @@ import re | |||
26 | 26 | ||
27 | logger = logging.getLogger('devtool') | 27 | logger = logging.getLogger('devtool') |
28 | 28 | ||
29 | |||
30 | class DevtoolError(Exception): | 29 | class DevtoolError(Exception): |
31 | """Exception for handling devtool errors""" | 30 | """Exception for handling devtool errors""" |
32 | pass | 31 | def __init__(self, message, exitcode=1): |
32 | super(DevtoolError, self).__init__(message) | ||
33 | self.exitcode = exitcode | ||
33 | 34 | ||
34 | 35 | ||
35 | def exec_build_env_command(init_path, builddir, cmd, watch=False, **options): | 36 | def exec_build_env_command(init_path, builddir, cmd, watch=False, **options): |