Changeset View
Changeset View
Standalone View
Standalone View
src/util/error.cpp
Show All 27 Lines | switch (error) { | ||||
return "PSBTs not compatible (different transactions)"; | return "PSBTs not compatible (different transactions)"; | ||||
case TransactionError::SIGHASH_MISMATCH: | case TransactionError::SIGHASH_MISMATCH: | ||||
return "Specified sighash value does not match existing value"; | return "Specified sighash value does not match existing value"; | ||||
} // 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) { | std::string AmountHighWarn(const std::string &optname) { | ||||
return strprintf(_("%s is set very high!"), optname); | return strprintf(_("%s is set very high!").translated, optname); | ||||
} | } | ||||
std::string AmountErrMsg(const std::string &optname, | std::string AmountErrMsg(const std::string &optname, | ||||
const std::string &strValue) { | const std::string &strValue) { | ||||
return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, | return strprintf(_("Invalid amount for -%s=<amount>: '%s'").translated, | ||||
strValue); | optname, strValue); | ||||
} | } |