Skip to content

Commit

Permalink
add job plugin post_error hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Nov 6, 2012
1 parent 2081e41 commit c17fc31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moa/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def execute(self, job, args, **kwargs):
"with an rc of %s") % (subcommand, rc))
if rc != 0:
sysConf.rc = rc
self.pluginHandler.run("post_error", job=self)
sysConf.pluginHandler.run("post_error")
moa.ui.exitError("Exit on error")
except moa.exceptions.MoaCommandDoesNotExist:
Expand Down

0 comments on commit c17fc31

Please sign in to comment.