bouncer notice: tell what invalid command did the client execute in NOTICE

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-02-25 00:35:24 +07:00
parent 8c685be8dd
commit 35afe1de83

View File

@@ -167,7 +167,7 @@ module.exports = (ws, req, onClose) => {
}
break;
default:
ws.send(JSON.stringify(["NOTICE", "error: unrecognized command."]));
ws.send(JSON.stringify(["NOTICE", `error: unrecognized command: ${data[0]}`]));
break;
}
});