Fix error formatting by rebuilding entrypoint-http.js

This commit is contained in:
Steve Sanderson
2017-07-03 13:47:14 +01:00
parent 513d288a5d
commit 9cce26ebd8

View File

@@ -133,7 +133,10 @@
}
function respondWithError(res, errorValue) {
res.statusCode = 500;
res.end(errorValue.stack || errorValue.toString());
res.end(JSON.stringify({
errorMessage: errorValue.message || errorValue,
errorDetails: errorValue.stack || null
}));
}