Skip to content

Commit 831d2bf

Browse files
committed
refactor: Don't embed translated string in untranslated string.
This could produce an english error message containing non-english string fragments if PopulateAndValidateSnapshot started returning any translated strings in the future. This change is also needed to make the next scripted-diff commit work.
1 parent 0580219 commit 831d2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5811,7 +5811,7 @@ util::Result<CBlockIndex*> ChainstateManager::ActivateSnapshot(
58115811

58125812
if (auto res{this->PopulateAndValidateSnapshot(*snapshot_chainstate, coins_file, metadata)}; !res) {
58135813
LOCK(::cs_main);
5814-
return cleanup_bad_snapshot(strprintf(Untranslated("Population failed: %s"), util::ErrorString(res)));
5814+
return cleanup_bad_snapshot(Untranslated(strprintf("Population failed: %s", util::ErrorString(res).original)));
58155815
}
58165816

58175817
LOCK(::cs_main); // cs_main required for rest of snapshot activation.

0 commit comments

Comments
 (0)