bug 1523104: remote: respond with 500 Internal Server Error if unable to serialise JSON; r=ochameau

This commit is contained in:
Andreas Tolfsen 2019-02-17 17:39:19 +00:00
parent 132c5fec6f
commit 6b1300177d

View File

@ -88,7 +88,7 @@ class JSONWriter {
this._response.write(json);
} catch (e) {
log.error(`Unable to serialise JSON: ${e.message}`, e);
this._response.write("");
this._response.setStatusLine("1.1", 500, "Internal Server Error");
}
}
}