summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-11-19 09:06:56 +0100
committerJürg Billeter <j@bitron.ch>2018-11-27 13:41:09 +0000
commit024d584d62fef84468a0b54b687aeb85dc874e4a (patch)
tree076033c801ddeb0eb021b5119ad38ca1af243658
parent87f7c99ae951e58808ca82f183a9c92a6f992b54 (diff)
downloadbuildstream-024d584d62fef84468a0b54b687aeb85dc874e4a.tar.gz
element.py: Cache artifact also on SandboxCommandError
-rw-r--r--buildstream/element.py4
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