diff --git a/pkg/solver/controller.go b/pkg/solver/controller.go index 4f28ed6a..f0a1934b 100644 --- a/pkg/solver/controller.go +++ b/pkg/solver/controller.go @@ -331,7 +331,7 @@ func (controller *SolverController) addResourceOffer(resourceOffer data.Resource requiredBalanceWei := web3.EtherToWei(float64(resourceOffer.DefaultPricing.InstructionPrice)) // If the balance is less than the required balance, don't add the resource offer if balance.Cmp(requiredBalanceWei) < 0 { - return nil, err + return nil, fmt.Errorf("address %s doesn't have enough funds. required balance is %s but expected balance is %s", resourceOffer.ResourceProvider, requiredBalanceWei, balance) } controller.log.Info("add resource offer", resourceOffer)