Add missing error return
This commit is contained in:
parent
825c8ff062
commit
7ea8c6d10d
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ func (c *Client) DoGaiaPairing(ctx context.Context, emojiCallback func(string))
|
||||||
}
|
}
|
||||||
emojiCallback(pairingEmoji)
|
emojiCallback(pairingEmoji)
|
||||||
finishResp, err := c.sendGaiaPairingMessage(ctx, ps, gmproto.ActionType_CREATE_GAIA_PAIRING_CLIENT_FINISHED, clientFinish)
|
finishResp, err := c.sendGaiaPairingMessage(ctx, ps, gmproto.ActionType_CREATE_GAIA_PAIRING_CLIENT_FINISHED, clientFinish)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to send client finish: %w", err)
|
||||||
|
}
|
||||||
if finishResp.GetFinishErrorType() != 0 {
|
if finishResp.GetFinishErrorType() != 0 {
|
||||||
switch finishResp.GetFinishErrorCode() {
|
switch finishResp.GetFinishErrorCode() {
|
||||||
case 5:
|
case 5:
|
||||||
|
|
Loading…
Reference in a new issue