summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-01 13:24:12 -0400
committerBenjamin Schubert <bschubert15@bloomberg.net>2018-11-08 10:21:12 +0000
commitc51ba01b7dce07c713ba7d9fd5505a5b9d575c5b (patch)
tree8c74ffd7e3d6cba52b895cd191248d1c91dab769 /buildstream
parentcf2e0059880058f0672aebb38f57fc43d347ae9a (diff)
downloadbuildstream-c51ba01b7dce07c713ba7d9fd5505a5b9d575c5b.tar.gz
Test that helpful messages are raised when missing dependencies
This adds a `reason` to the SandboxEror thrown in sandboxdummy to be able to understand where the error comes from
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/sandbox/_sandboxdummy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxdummy.py b/buildstream/sandbox/_sandboxdummy.py
index c0a86a0bb..0e3754c1b 100644
--- a/buildstream/sandbox/_sandboxdummy.py
+++ b/buildstream/sandbox/_sandboxdummy.py
@@ -42,4 +42,5 @@ class SandboxDummy(Sandbox):
"'{}'".format(command[0]),
reason='missing-command')
- raise SandboxError("This platform does not support local builds: {}".format(self._reason))
+ raise SandboxError("This platform does not support local builds: {}".format(self._reason),
+ reason="unavailable-local-sandbox")