Fix error handling in maketoken.
This commit is contained in:
1 parent
2c852206bd
commit
76066a1a10
1 file changed
+1
-1
@@ -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