mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -542,7 +542,7 @@ install.save = function (server_conf, callback) {
|
||||
|
||||
fs.writeFile(serverConfigPath, JSON.stringify(server_conf, null, 4), function (err) {
|
||||
if (err) {
|
||||
winston.error('Error saving server configuration! ' + err.message);
|
||||
winston.error('Error saving server configuration!', err);
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user