Changeset View
Changeset View
Standalone View
Standalone View
src/util/error.cpp
Show All 29 Lines | switch (error) { | ||||
return "Specified sighash value does not match existing value"; | return "Specified sighash value does not match existing value"; | ||||
case TransactionError::MAX_FEE_EXCEEDED: | case TransactionError::MAX_FEE_EXCEEDED: | ||||
return "Fee exceeds maximum configured by -maxtxfee"; | return "Fee exceeds maximum configured by -maxtxfee"; | ||||
// no default case, so the compiler can warn about missing cases | // no default case, so the compiler can warn about missing cases | ||||
} | } | ||||
assert(false); | assert(false); | ||||
} | } | ||||
std::string AmountHighWarn(const std::string &optname) { | bilingual_str AmountHighWarn(const std::string &optname) { | ||||
return strprintf(_("%s is set very high!").translated, optname); | return strprintf(_("%s is set very high!"), optname); | ||||
} | } | ||||
std::string AmountErrMsg(const std::string &optname, | bilingual_str AmountErrMsg(const std::string &optname, | ||||
const std::string &strValue) { | const std::string &strValue) { | ||||
return strprintf(_("Invalid amount for -%s=<amount>: '%s'").translated, | return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, | ||||
optname, strValue); | strValue); | ||||
} | } |