Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 9cce26e

Browse files
Fix error formatting by rebuilding entrypoint-http.js
1 parent 513d288 commit 9cce26e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@
133133
}
134134
function respondWithError(res, errorValue) {
135135
res.statusCode = 500;
136-
res.end(errorValue.stack || errorValue.toString());
136+
res.end(JSON.stringify({
137+
errorMessage: errorValue.message || errorValue,
138+
errorDetails: errorValue.stack || null
139+
}));
137140
}
138141

139142

0 commit comments

Comments
 (0)