Skip to content

Commit

Permalink
Merge pull request #1329 from mdyring/patch-1
Browse files Browse the repository at this point in the history
Improve error message for insufficient balance
  • Loading branch information
wukongcheng authored Mar 2, 2019
2 parents f26feca + 5d3d772 commit 60b668f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auth/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func deductFees(acc Account, fee StdFee) (Account, sdk.Result) {
}
newCoins, ok := coins.SafeMinus(feeAmount)
if ok {
errMsg := fmt.Sprintf("%s is less than %s", coins, feeAmount)
errMsg := fmt.Sprintf("account balance (%s) is less than %s", coins, feeAmount)
return nil, sdk.ErrInsufficientFunds(errMsg).Result()
}
err := acc.SetCoins(newCoins)
Expand Down

0 comments on commit 60b668f

Please sign in to comment.