Add missing error return

This commit is contained in:
Tulir Asokan 2024-03-28 14:55:00 +02:00
parent 825c8ff062
commit 7ea8c6d10d

View file

@ -321,6 +321,9 @@ func (c *Client) DoGaiaPairing(ctx context.Context, emojiCallback func(string))
}
emojiCallback(pairingEmoji)
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 {
switch finishResp.GetFinishErrorCode() {
case 5: