rpc: Use untranslated error strings in loadtxoutset

This commit is contained in:
MarcoFalke
2024-07-05 10:08:32 +02:00
parent fa45865778
commit fa5b8920be
2 changed files with 11 additions and 11 deletions

View File

@@ -2833,7 +2833,7 @@ static RPCHelpMan loadtxoutset()
auto activation_result{chainman.ActivateSnapshot(afile, metadata, false)};
if (!activation_result) {
throw JSONRPCError(RPC_INTERNAL_ERROR, strprintf(_("Unable to load UTXO snapshot: %s\n"), util::ErrorString(activation_result)).original);
throw JSONRPCError(RPC_INTERNAL_ERROR, strprintf("Unable to load UTXO snapshot: %s. (%s)", util::ErrorString(activation_result).original, path.utf8string()));
}
UniValue result(UniValue::VOBJ);