mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 12:19:20 +02:00
More detailed error message in settings
This commit is contained in:
parent
52dc459704
commit
481ba5a30f
@ -32,12 +32,13 @@ else {
|
||||
}
|
||||
|
||||
if (!file_exists($settingsFilePath)) {
|
||||
error('This plugin does not exist or does not have settings defined.');
|
||||
error("Plugin $plugin does not exist or does not have settings defined.");
|
||||
return;
|
||||
}
|
||||
|
||||
$settingsFile = require $settingsFilePath;
|
||||
if (!is_array($settingsFile)) {
|
||||
error("Cannot load settings file for plugin $plugin");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user