Return the response and the error

This commit is contained in:
Alfred Kamanda 2024-09-07 17:41:05 +03:00
parent 01c13ec581
commit e14fd5e496
Signed by untrusted user: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -203,7 +203,7 @@ func (h *Handlers) SavePin(ctx context.Context, sym string, input []byte) (resou
err = utils.WriteEntry(ctx, h.userdataStore, sessionId, utils.DATA_ACCOUNT_PIN, []byte(accountPIN))
if err != nil {
return res, nil
return res, err
}
return res, nil