mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Fix for undefined error log in console
When css|less build fails it is logging as undefined in console. In that case err object does not have any stack property. Printing the error itself in that case will be sufficient.
This commit is contained in:
parent
068caad970
commit
b7af16c313
@ -115,7 +115,7 @@ function plugin(options, imports, register) {
|
||||
var accept = req.headers.accept || '';
|
||||
|
||||
if (statusCode == 500) {
|
||||
console.error(err && err.stack);
|
||||
console.error(err && (err.stack || err));
|
||||
emitter.emit("internalServerError", {
|
||||
err: err,
|
||||
req: req
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user