increased error reporting
This commit is contained in:
parent
e2204a52dc
commit
e967f151ee
|
@ -199,15 +199,16 @@ func (ta *TokenBoardClient) MakePayment() error {
|
|||
conn.Close()
|
||||
return nil
|
||||
}
|
||||
log.Errorf("invalid case of powapp. this should not happen")
|
||||
return errors.New("invalid cast of powapp. this should never happen")
|
||||
}
|
||||
} else {
|
||||
log.Debugf("failed to make a connection. trying again...")
|
||||
// it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice
|
||||
time.Sleep(time.Second)
|
||||
log.Debugf("could not connect to payment server %v..trying again")
|
||||
return ta.MakePayment()
|
||||
}
|
||||
log.Debugf("Error making payment: to %v %v", ta.tokenServiceOnion, err)
|
||||
return err
|
||||
log.Debugf("failed to make a connection. trying again...")
|
||||
// it doesn't actually take that long to make a payment, so waiting a small amount of time should suffice
|
||||
time.Sleep(time.Second)
|
||||
return ta.MakePayment()
|
||||
}
|
||||
|
||||
// NextToken retrieves the next token
|
||||
|
|
Loading…
Reference in New Issue