Commit 76066a1a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix error handling in maketoken.

parent 2c852206
......@@ -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 == "" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment