Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
use horizonclient error types
Browse files Browse the repository at this point in the history
  • Loading branch information
poliha committed Jul 25, 2019
1 parent 3c7533a commit 67b67ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gui/backend/upsert_bot_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"net/http"
"strings"

"github.com/stellar/go/clients/horizon"
"github.com/stellar/go/clients/horizonclient"
"github.com/stellar/go/keypair"
"github.com/stellar/go/network"
Expand Down Expand Up @@ -302,11 +301,11 @@ func (s *APIServer) checkAddTrustline(account hProtocol.Account, kp keypair.KP,

txSuccess, e := client.SubmitTransactionXDR(txn64)
if e != nil {
var herr *horizon.Error
var herr *horizonclient.Error
switch t := e.(type) {
case *horizon.Error:
case *horizonclient.Error:
herr = t
case horizon.Error:
case horizonclient.Error:
herr = &t
default:
return fmt.Errorf("error when submitting change trust transaction for address %s for bot '%s' for assets(%v): %s (%s)\n", address, botName, trustlines, e, txn64)
Expand Down

0 comments on commit 67b67ed

Please sign in to comment.