From d172b5c6718b69200c8ad211fe709860081bd692 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Fri, 24 Feb 2023 13:44:07 -0500 Subject: Add InitError(error, details) overload This is only used in the current PR to avoid ugly `strprintf(Untranslated("%s:\n%s"), str, MakeUnorderedList(details)` boilerplate in init code. But in the future the function could be extended and more widely used to include more details in GUI error messages or display them in a more readable way, see code comment. --- src/index/base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index') diff --git a/src/index/base.cpp b/src/index/base.cpp index 6f2ce2efe4..7c570d4534 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -35,7 +35,7 @@ static void FatalError(const char* fmt, const Args&... args) std::string strMessage = tfm::format(fmt, args...); SetMiscWarning(Untranslated(strMessage)); LogPrintf("*** %s\n", strMessage); - AbortError(_("A fatal internal error occurred, see debug.log for details")); + InitError(_("A fatal internal error occurred, see debug.log for details")); StartShutdown(); } -- cgit v1.2.3