aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/websockets_hello.ml3
1 files changed, 2 insertions, 1 deletions
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 () =