mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Project ui code using incorrect error property
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = {
|
||||
rejectHandler: function(req,res,err) {
|
||||
//TODO: why this when errorHandler also?!
|
||||
log.audit({event: "api.error",error:err.code||"unexpected_error",message:err.message||err.toString()},req);
|
||||
res.status(err.status||500).json({
|
||||
res.status(err.status||400).json({
|
||||
code: err.code||"unexpected_error",
|
||||
message: err.message||err.toString()
|
||||
});
|
||||
|
Reference in New Issue
Block a user