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-25 21:23:54 +0100 |
| commit | 4ff52d5568bfb91ba2fe98708842cd836bcee087 (patch) | |
| tree | 7d00a5604cf9aaeafaf33f52c33ffebb972dcec6 | |
| parent | a73daece21b135cee4c82da1cb3c2e395b961862 (diff) | |
| download | buildstream-4ff52d5568bfb91ba2fe98708842cd836bcee087.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 |
