Change the message

pull/199/head
Tim Robinson 2015-09-18 11:02:19 +00:00
rodzic 9db5aff1c9
commit 267ae6e3f4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -124,7 +124,7 @@ function plugin(options, imports, register) {
JSON.stringify(error);
} catch (e) {
console.error("Cannot send error as JSON: ", error);
error = "Unspecified error";
error.message = "Unspecified error";
}
res.json({ error: error }, null, statusCode);
// plain text