kopia lustrzana https://github.com/c9/core
Change the message
rodzic
9db5aff1c9
commit
267ae6e3f4
|
@ -124,7 +124,7 @@ function plugin(options, imports, register) {
|
||||||
JSON.stringify(error);
|
JSON.stringify(error);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Cannot send error as JSON: ", error);
|
console.error("Cannot send error as JSON: ", error);
|
||||||
error = "Unspecified error";
|
error.message = "Unspecified error";
|
||||||
}
|
}
|
||||||
res.json({ error: error }, null, statusCode);
|
res.json({ error: error }, null, statusCode);
|
||||||
// plain text
|
// plain text
|
||||||
|
|
Ładowanie…
Reference in New Issue