It could be the scope breaking it

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

Wyświetl plik

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