mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-24 02:13:28 +00:00
Improve error messages format
This commit is contained in:
@ -175,7 +175,10 @@ export class UserWebSocketController {
|
||||
|
||||
// Try again to send again a response
|
||||
try {
|
||||
handler.sendResponse("error", "Server error.");
|
||||
handler.sendResponse("error", {
|
||||
code: 500,
|
||||
message: "Server error"
|
||||
});
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user