Skip to content
Snippets Groups Projects
Commit 06c9c22a authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Abort on loading of module errors

parent 75be88e3
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,10 @@ sub plugin_register
# Check if the error is critical or not
if ($systemPlugin) {
$logger->log(LOG_ERR,"[PLUGINS] Error loading plugin '%s', things WILL BREAK! (%s)",$pluginName,$@);
exit;
} else {
$logger->log(LOG_WARN,"[PLUGINS] Error loading plugin '%s' (%s)",$pluginName,$@);
exit;
}
} else {
$logger->log(LOG_DEBUG,"[PLUGINS] Plugin '%s' loaded.",$pluginName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment