Commit 097ad8a5 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Error logging fix for provision_exec

parent b681c0e9
......@@ -595,12 +595,14 @@ function provision_exec($cmd, &$data) {
foreach ($values['log'] as $log) {
provision_log($log['type'], $log['message']);
}
provision_set_error($code);
if (!($code & PROVISION_SUCCESS)) {
provision_set_error($code);
}
return TRUE;
}
else {
provision_set_error(PROVISION_FRAMEWORK_ERROR);
provision_log('error', t('External script failed'));
provision_log('error',t("The command could not be executed succesfully (returned: !return, code: %code)", array("!return" => $return, "%code" => $code)));
return FALSE;
}
};
......
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