mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add error codes to api responses
This commit is contained in:
@@ -57,7 +57,7 @@ function createLibrary(type) {
|
||||
res.send(403);
|
||||
return;
|
||||
}
|
||||
res.json(500,{message:err.toString()});
|
||||
res.json(500,{error:"unexpected_error", message:err.toString()});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user