diff --git a/src/node/interface_ui.cpp b/src/node/interface_ui.cpp index 4f4d240d1b5..c9dcd7a7fb9 100644 --- a/src/node/interface_ui.cpp +++ b/src/node/interface_ui.cpp @@ -74,7 +74,7 @@ bool InitError(const bilingual_str& str, const std::vector& details // functions which provide error details are ones that run during early init // before the GUI uiInterface is registered, so there's no point passing // main messages and details separately to uiInterface yet. - return InitError(details.empty() ? str : strprintf(Untranslated("%s:\n%s"), str, MakeUnorderedList(details))); + return InitError(details.empty() ? str : str + Untranslated(strprintf(":\n%s", MakeUnorderedList(details)))); } void InitWarning(const bilingual_str& str) diff --git a/src/validation.cpp b/src/validation.cpp index 074c090f1ea..b3470ece491 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -6142,7 +6142,7 @@ SnapshotCompletionResult ChainstateManager::MaybeCompleteSnapshotValidation() auto rename_result = m_snapshot_chainstate->InvalidateCoinsDBOnDisk(); if (!rename_result) { - user_error = strprintf(Untranslated("%s\n%s"), user_error, util::ErrorString(rename_result)); + user_error += Untranslated("\n") + util::ErrorString(rename_result); } GetNotifications().fatalError(user_error);