Commit f2e47e57 authored by Nigel McNie's avatar Nigel McNie
Browse files

Add a bit better logging when loading config fails. Can help if you're not...

Add a bit better logging when loading config fails. Can help if you're not sure why your database is not being used, but was connected to correctly
parent 206d8704
......@@ -460,6 +460,9 @@ function load_config() {
$dbconfig = get_records_array('config', '', '', '', 'field, value');
}
catch (SQLException $e) {
// TODO: better reporting if config could not be obtained? This
// normally happens when the system isn't installed
log_info($e->getMessage());
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