mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
refactor: proxy error response (#452)
This commit is contained in:
@@ -12,7 +12,7 @@ proxy.on('error', (error, _req, res) => {
|
||||
;(res as http.ServerResponse).writeHead(500, {
|
||||
'Content-Type': 'text/plain',
|
||||
})
|
||||
res.end('Something went wrong. And we are reporting a custom error message.')
|
||||
res.end(error.message)
|
||||
})
|
||||
|
||||
http
|
||||
|
||||
Reference in New Issue
Block a user