From 76066a1a10b58348160e3f02628230f3ffcbb9bd Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 4 May 2023 03:31:09 +0200 Subject: [PATCH] Fix error handling in maketoken. --- rtpconn/webclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index e4351cb..0b282d1 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -1714,7 +1714,7 @@ func handleClientMessage(c *webClient, m clientMessage) error { } tok, err := parseStatefulToken(m.Value) if err != nil { - return terror("not-authorised", "not authorised") + return terror("error", err.Error()) } if tok.Token == "" {