Summary:
In order to support more flexible post hooks. Also send the
error code to the hook for use by client code.
Test Plan: None
Reviewed By: epriestley
Reviewers: epriestley
CC: dpepper, aran, epriestley
Differential Revision: 656
$config->willRunWorkflow($command, $workflow);
$workflow->willRunWorkflow();
$err = $workflow->run();
- if ($err == 0) {
- $config->didRunWorkflow($command, $workflow);
- }
+ $config->didRunWorkflow($command, $workflow, $err);
exit($err);
} catch (ArcanistUsageException $ex) {
// This is a hook.
}
- public function didRunWorkflow($command, ArcanistBaseWorkflow $workflow) {
+ public function didRunWorkflow($command, ArcanistBaseWorkflow $workflow,
+ $err) {
// This is a hook.
}