Fixed the incorrect way used to return error resonses in NBI.
This commit is contained in:
1 parent
b91bcb7442
commit
a02e3ecf17
3 files changed
+19
-15
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ listener = (httpRequest, httpResponse) ->
|
||||
)
|
||||
|
||||
httpResponse.writeHead(500, {'Connection' : 'close'})
|
||||
httpResponse.end()
|
||||
httpResponse.end("#{err.name}: #{err.message}")
|
||||
catch err2
|
||||
util.error("#{new Date().toISOString()} - #{err2.stack}\n")
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user