From 01c55abaf6bbc1ff59ffa741798f4598632db360 Mon Sep 17 00:00:00 2001 From: Clombrong Date: Wed, 11 Jun 2025 00:41:16 +0200 Subject: feat(auth): add MalformedRequest SASL error --- test/js/websockets_hello.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/js/websockets_hello.ml b/test/js/websockets_hello.ml index 9043501..fb88e04 100644 --- a/test/js/websockets_hello.ml +++ b/test/js/websockets_hello.ml @@ -23,7 +23,8 @@ let main (stream, push) = Auth.PLAIN in push None; match _auth with - | Error (NotAuthorized, Some ("en", text)) -> print_endline text + | Error (NotAuthorized, Some (_, text)) -> print_endline ("Not authorized: " ^ text) + | Error (MalformedRequest, Some (_, text)) -> print_endline ("Malformed request: " ^ text) | _ -> () let () = -- cgit v1.2.3