aboutsummaryrefslogtreecommitdiff
path: root/src/shutdown.cpp
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2023-02-24 13:44:07 -0500
committerRyan Ofsky <ryan@ofsky.org>2023-02-28 12:04:47 -0500
commitd172b5c6718b69200c8ad211fe709860081bd692 (patch)
treeac3cbcb7debb57b9fa06233ca0fc3ba124b5d6d6 /src/shutdown.cpp
parent3db2874bd71d2391747b7385cabcbfef67218c4c (diff)
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.
Diffstat (limited to 'src/shutdown.cpp')
-rw-r--r--src/shutdown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdown.cpp b/src/shutdown.cpp
index 57d6d2325d..2fffc0663c 100644
--- a/src/shutdown.cpp
+++ b/src/shutdown.cpp
@@ -27,7 +27,7 @@ bool AbortNode(const std::string& strMessage, bilingual_str user_message)
if (user_message.empty()) {
user_message = _("A fatal internal error occurred, see debug.log for details");
}
- AbortError(user_message);
+ InitError(user_message);
StartShutdown();
return false;
}