Skip to content

Commit

Permalink
Exit with status 1 in case of a ServiceRuntimeError
Browse files Browse the repository at this point in the history
Fixes: #344 ("'osc ci' exit code doesn't take source service results
       into account")
  • Loading branch information
marcus-h committed Oct 6, 2017
1 parent 760d4d6 commit 6acc90d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osc/babysitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def run(prg, argv=None):
return 1
except oscerr.ServiceRuntimeError as e:
print(e.msg, file=sys.stderr)
return 1
except oscerr.WorkingCopyOutdated as e:
print(e, file=sys.stderr)
return 1
Expand Down

0 comments on commit 6acc90d

Please sign in to comment.