mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
util: Move ResolveErrMsg to util/error
This commit is contained in:
parent
8fc7f0cba9
commit
fa27c55b05
4 changed files with 13 additions and 10 deletions
|
|
@ -36,12 +36,17 @@ std::string TransactionErrorString(const TransactionError err)
|
|||
assert(false);
|
||||
}
|
||||
|
||||
std::string ResolveErrMsg(const std::string& optname, const std::string& strBind)
|
||||
{
|
||||
return strprintf(_("Cannot resolve -%s address: '%s'").translated, optname, strBind);
|
||||
}
|
||||
|
||||
std::string AmountHighWarn(const std::string& optname)
|
||||
{
|
||||
return strprintf(_("%s is set very high!").translated, optname);
|
||||
}
|
||||
|
||||
std::string AmountErrMsg(const char* const optname, const std::string& strValue)
|
||||
std::string AmountErrMsg(const std::string& optname, const std::string& strValue)
|
||||
{
|
||||
return strprintf(_("Invalid amount for -%s=<amount>: '%s'").translated, optname, strValue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue