summaryrefslogtreecommitdiff
path: root/buildstream/_stream.py
diff options
context:
space:
mode:
authorPhillip Smyth <phillip.smyth@codethink.co.uk>2018-09-24 12:06:32 +0100
committerPhillip Smyth <phillip.smyth@codethink.co.uk>2018-09-25 16:21:20 +0100
commit936e4ffc333a3aa93b369bde1ef0a43fb5af4b86 (patch)
treedf7bc7541b26355f2c7ccc9634b33672072d63d1 /buildstream/_stream.py
parentd0cc95485d1d99ea18da58c185f470932e03fa07 (diff)
downloadbuildstream-workspace_list_error_message.tar.gz
Fixed workspace list error messageworkspace_list_error_message
If no workspaces were found, bst workspace would return `[]` This has been changed to a nicer message
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r--buildstream/_stream.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index f4661cc2a..70392f5e8 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -641,6 +641,9 @@ class Stream():
}
workspaces.append(workspace_detail)
+ if not workspaces:
+ workspaces = "No workspaces found"
+
_yaml.dump({
'workspaces': workspaces
})