mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
Include details if any in JSON requests
This commit is contained in:
@@ -667,8 +667,10 @@ export class HttpServer {
|
||||
if (request.headers["content-type"] === "application/json") {
|
||||
write({
|
||||
code,
|
||||
mime: "application/json",
|
||||
content: {
|
||||
error: e.message,
|
||||
...(e.details || {}),
|
||||
},
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user