mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
fix errors without a message ID
This commit is contained in:
parent
e725dc248c
commit
ad1296e0ed
1 changed files with 1 additions and 1 deletions
|
@ -462,12 +462,12 @@ func C2SHandleBunchedCommand(conn *websocket.Conn, client *ClientInfo, msg Clien
|
|||
go func() {
|
||||
result := <-resultCh
|
||||
var reply ClientMessage
|
||||
reply.MessageID = msg.MessageID
|
||||
if result.Err != nil {
|
||||
reply.Command = ErrorCommand
|
||||
reply.Arguments = result.Err.Error()
|
||||
} else {
|
||||
reply.Command = SuccessCommand
|
||||
reply.MessageID = msg.MessageID
|
||||
reply.origArguments = result.Val.(string)
|
||||
reply.parseOrigArguments()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue