mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
bug 1523104: remote: respond with 500 Internal Server Error if unable to serialise JSON; r=ochameau
This commit is contained in:
parent
132c5fec6f
commit
6b1300177d
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user