diff options
| author | MarcoFalke <[email protected]> | 2019-08-15 10:06:23 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-08-15 10:05:32 -0400 |
| commit | fa27c55b0593c769b6ad87de0b59df3816d73548 (patch) | |
| tree | dc770cf00128f231a6db692a519f0ff9a38546a7 /src/util/error.cpp | |
| parent | Merge #16578: Do not pass in command line arguments to QApplication (diff) | |
| download | discoin-fa27c55b0593c769b6ad87de0b59df3816d73548.tar.xz discoin-fa27c55b0593c769b6ad87de0b59df3816d73548.zip | |
util: Move ResolveErrMsg to util/error
Diffstat (limited to 'src/util/error.cpp')
| -rw-r--r-- | src/util/error.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util/error.cpp b/src/util/error.cpp index 9edb7dc53..287476c0d 100644 --- a/src/util/error.cpp +++ b/src/util/error.cpp @@ -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); } |