1
0
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:
2020-03-31 16:28:35 +02:00
parent 7f82128c71
commit 92340bbc33
2 changed files with 8 additions and 2 deletions

View File

@ -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);
}