Setup plugin failure should cease execution. Fixes #797
This commit is contained in:
parent
f919ff6265
commit
98fa3ce334
1 changed files with 5 additions and 0 deletions
|
|
@ -60,6 +60,11 @@ class Executor
|
|||
$this->logger->logSuccess(Lang::get('plugin_success'));
|
||||
|
||||
} else {
|
||||
// If we're in the "setup" stage, execution should not continue after
|
||||
// a plugin has failed:
|
||||
if ($stage == 'setup') {
|
||||
throw new \Exception('Plugin failed: ' . $plugin);
|
||||
}
|
||||
|
||||
// If we're in the "test" stage and the plugin is not allowed to fail,
|
||||
// then mark the build as failed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue