From fa27c55b0593c769b6ad87de0b59df3816d73548 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 15 Aug 2019 10:06:23 -0400 Subject: util: Move ResolveErrMsg to util/error --- src/util/error.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/util/error.cpp') 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=: '%s'").translated, optname, strValue); } -- cgit v1.2.3