Skip to content

Commit

Permalink
add failure message.
Browse files Browse the repository at this point in the history
For some reason the python error messages
are not printed in a slurm job, though they
are in interactively. this at least
gets the gist of it in all cases
  • Loading branch information
nsheff committed May 3, 2019
1 parent 01f1eeb commit a128921
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ def fail_pipeline(self, e, dynamic_recover=False):
self.timestamp("### Pipeline failed at: ")
total_time = datetime.timedelta(seconds=self.time_elapsed(self.starttime))
print("Total time: " + str(total_time))
print("Failure reason: " + str(e))
self._set_status_flag(FAIL_FLAG)

raise e
Expand Down

0 comments on commit a128921

Please sign in to comment.