1
Fork 0

Fix error handling in maketoken.

This commit is contained in:
Juliusz Chroboczek 2023-05-04 03:31:09 +02:00
parent 2c852206bd
commit 76066a1a10
1 changed files with 1 additions and 1 deletions

View File

@ -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 == "" {