Fix error handling in maketoken.
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user