Commit 69bd6500 by Alain Takoudjou

monitor.runpromise: exit with non zero code if a promise has failed

1 parent 35979a05
...@@ -156,15 +156,15 @@ class MonitorPromiseLauncher(object): ...@@ -156,15 +156,15 @@ class MonitorPromiseLauncher(object):
) )"Checking promises...")"Checking promises...")
exit_code = 0
try: try:
except PromiseError, e: except PromiseError, e:
# error was already logged # error was already logged
pass exit_code = 1
os.remove(self.config.pid_path) os.remove(self.config.pid_path)"Finished promises.")"Finished promises.")
return exit_code
def main(): def main():
arg_parser = getArgumentParser() arg_parser = getArgumentParser()
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!