Skip to content

Commit ed88e31

Browse files
author
MarcoFalke
committed
Merge #10744: Use method name via __func__ macro
9bbf600 Use method name from __func__ macro (darksh1ne) Tree-SHA512: da6d0714f458b538189bbc2b53252ba353dcc1ef15fa780cb7f690a034b58ab0dbaa3a89f83f044c746241ee265a70fc092449f1cc7be4f190775423fbca5fc5
2 parents 5af6572 + 9bbf600 commit ed88e31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ CAmount CWalletTx::GetAvailableCredit(bool fUseCache) const
17181718
const CTxOut &txout = tx->vout[i];
17191719
nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
17201720
if (!MoneyRange(nCredit))
1721-
throw std::runtime_error("CWalletTx::GetAvailableCredit() : value out of range");
1721+
throw std::runtime_error(std::string(__func__) + " : value out of range");
17221722
}
17231723
}
17241724

@@ -1761,7 +1761,7 @@ CAmount CWalletTx::GetAvailableWatchOnlyCredit(const bool& fUseCache) const
17611761
const CTxOut &txout = tx->vout[i];
17621762
nCredit += pwallet->GetCredit(txout, ISMINE_WATCH_ONLY);
17631763
if (!MoneyRange(nCredit))
1764-
throw std::runtime_error("CWalletTx::GetAvailableCredit() : value out of range");
1764+
throw std::runtime_error(std::string(__func__) + ": value out of range");
17651765
}
17661766
}
17671767

0 commit comments

Comments
 (0)