diff options
author | Jürg Billeter <j@bitron.ch> | 2018-11-19 09:06:56 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-11-27 13:41:09 +0000 |
commit | 024d584d62fef84468a0b54b687aeb85dc874e4a (patch) | |
tree | 076033c801ddeb0eb021b5119ad38ca1af243658 | |
parent | 87f7c99ae951e58808ca82f183a9c92a6f992b54 (diff) | |
download | buildstream-024d584d62fef84468a0b54b687aeb85dc874e4a.tar.gz |
element.py: Cache artifact also on SandboxCommandError
-rw-r--r-- | buildstream/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index 69219e194..c249ed2f2 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -89,7 +89,7 @@ from ._exceptions import BstError, LoadError, LoadErrorReason, ImplError, \ ErrorDomain from .utils import UtilError from . import Plugin, Consistency, Scope -from . import SandboxFlags +from . import SandboxFlags, SandboxCommandError from . import utils from . import _cachekey from . import _signals @@ -1565,7 +1565,7 @@ class Element(Plugin): # Step 4 - Assemble collect = self.assemble(sandbox) # pylint: disable=assignment-from-no-return self.__set_build_result(success=True, description="succeeded") - except ElementError as e: + except (ElementError, SandboxCommandError) as e: # Shelling into a sandbox is useful to debug this error e.sandbox = True |