Skip to content

Commit

Permalink
return error instead of just logging it
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Nov 1, 2023
1 parent f6ac73a commit eb4cbb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/walletextension/accountmanager/account_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (m *AccountManager) ProxyRequest(rpcReq *wecommon.RPCRequest, rpcResp *inte
err = m.subscriptionsManager.HandleNewSubscriptions(clients, rpcReq, rpcResp, userConn)
if err != nil {
m.logger.Error("Error subscribing to multiple clients")
return err
}
return err
}
Expand Down
1 change: 1 addition & 0 deletions tools/walletextension/wallet_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func (w *WalletExtension) AddAddressToUser(hexUserID string, message string, sig
encClient, err := common.CreateEncClient(w.hostAddr, addressFromMessage.Bytes(), privateKeyBytes, signature, w.Logger())
if err != nil {
w.Logger().Error(fmt.Errorf("error creating encrypted client for user: (%s), %w", hexUserID, err).Error())
return errors.New(fmt.Errorf("error creating encrypted client for user: (%s), %w", hexUserID, err).Error())
}

accManager.AddClient(addressFromMessage, encClient)
Expand Down

0 comments on commit eb4cbb9

Please sign in to comment.