Skip to content

Commit d392068

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 d0695fe commit d392068

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
@@ -5789,7 +5789,7 @@ util::Result<CBlockIndex*> ChainstateManager::ActivateSnapshot(
57895789

57905790
if (auto res{this->PopulateAndValidateSnapshot(*snapshot_chainstate, coins_file, metadata)}; !res) {
57915791
LOCK(::cs_main);
5792-
return cleanup_bad_snapshot(strprintf(Untranslated("Population failed: %s"), util::ErrorString(res)));
5792+
return cleanup_bad_snapshot(Untranslated(strprintf("Population failed: %s", util::ErrorString(res).original)));
57935793
}
57945794

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

0 commit comments

Comments
 (0)