aboutsummaryrefslogtreecommitdiff
path: root/src/node/interface_ui.h
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/node/interface_ui.h
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/node/interface_ui.h')
-rw-r--r--src/node/interface_ui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/interface_ui.h b/src/node/interface_ui.h
index 9f6503b4a1..22c241cb78 100644
--- a/src/node/interface_ui.h
+++ b/src/node/interface_ui.h
@@ -116,7 +116,7 @@ void InitWarning(const bilingual_str& str);
/** Show error message **/
bool InitError(const bilingual_str& str);
-constexpr auto AbortError = InitError;
+bool InitError(const bilingual_str& str, const std::vector<std::string>& details);
extern CClientUIInterface uiInterface;