summaryrefslogtreecommitdiff
path: root/buildstream/_exceptions.py
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-10-29 13:26:40 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-10-30 15:42:05 +0000
commit37afde0a6c6c48bfa18d9f8c495bd4d8bf1cece1 (patch)
treeeb5b0fa5221ecda2d9dae50d93267ba4b33e0062 /buildstream/_exceptions.py
parent09ef8b254342638e828378c2f785963bcf9487da (diff)
downloadbuildstream-37afde0a6c6c48bfa18d9f8c495bd4d8bf1cece1.tar.gz
Element: Use cached buildtree in build shells and failure shells
This includes changes in app.py: * Interactive failure shell no longer uses the failed build sysroot, defaulting to the cached build tree. Changes in element.py are: * Errors caused by building don't store the failed build sysroot, instead storing that a sandbox can be created to debug the error. * When staging sources, will stage the element's cached build tree if it exists. Changes in _exceptions.py: * BstError.sandbox is now a flag of whether a sandbox can be opened up to debug the error. Changes in widget.py: * Don't try to print any information about the sandbox. Changes in _message.py: * Fix documentation so Message.sandbox is not a directory any more. This is part of #539
Diffstat (limited to 'buildstream/_exceptions.py')
-rw-r--r--buildstream/_exceptions.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/buildstream/_exceptions.py b/buildstream/_exceptions.py
index 19606776e..a1c26d38c 100644
--- a/buildstream/_exceptions.py
+++ b/buildstream/_exceptions.py
@@ -111,10 +111,8 @@ class BstError(Exception):
#
self.detail = detail
- # The build sandbox in which the error occurred, if the
- # error occurred at element assembly time.
- #
- self.sandbox = None
+ # A sandbox can be created to debug this error
+ self.sandbox = False
# When this exception occurred during the handling of a job, indicate
# whether or not there is any point retrying the job.