1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

more error message.

This commit is contained in:
Mrs4s 2020-12-01 23:05:33 +08:00
parent 1635322267
commit e705f96efd

View File

@ -1,6 +1,7 @@
package client
import (
"encoding/hex"
"fmt"
"net"
"strconv"
@ -161,7 +162,10 @@ func decodeLoginResponse(c *QQClient, _ uint16, payload []byte) (interface{}, er
ErrorMessage: t146r.ReadStringShort(),
}, nil
}
c.Debug("unknown login response: %v", t)
for k, v := range m {
c.Debug("Type: %v Value: %v", strconv.FormatInt(int64(k), 16), hex.EncodeToString(v))
}
return nil, errors.Errorf("unknown login response: %v", t) // ?
}