Skip to content

Commit b59f28b

Browse files
committed
Added more helpful error when deis run comes before git push.
1 parent 36aae0e commit b59f28b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def converge_node(node):
5353
@task
5454
def run_node(node, command):
5555
output, rc = CM.run_node(node.flat(), command)
56+
if rc != 0 and 'failed to setup the container' in output:
57+
output = '\033[35mPlease run `git push deis master` first.\033[0m\n' + output
5658
return output, rc
5759

5860

0 commit comments

Comments
 (0)