Commit 3653d291 authored by anarcat's avatar anarcat Committed by anarcat

make overload a real error so it shows up in logs and cascades back up the stack

parent bcfda276
......@@ -58,7 +58,7 @@ include_once('provision.path.inc');
function provision_drush_init() {
$load = sys_getloadavg();
if (provision_load_critical($load)) {
drush_log(dt("load on system too heavy (@load), aborting", array('@load' => join(" ", $load))));
drush_set_error('PROVISION_OVERLOAD', dt("load on system too heavy (@load), aborting", array('@load' => join(" ", $load))));
exit(1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment