diff options
Diffstat (limited to 'src/node/kernel_notifications.cpp')
-rw-r--r-- | src/node/kernel_notifications.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/node/kernel_notifications.cpp b/src/node/kernel_notifications.cpp index 926b157f3b..0be7d51afb 100644 --- a/src/node/kernel_notifications.cpp +++ b/src/node/kernel_notifications.cpp @@ -10,7 +10,12 @@ #include <common/args.h> #include <common/system.h> +#include <kernel/context.h> +#include <logging.h> +#include <node/abort.h> #include <node/interface_ui.h> +#include <shutdown.h> +#include <util/check.h> #include <util/strencodings.h> #include <util/string.h> #include <util/translation.h> @@ -72,4 +77,14 @@ void KernelNotifications::warning(const bilingual_str& warning) DoWarning(warning); } +void KernelNotifications::flushError(const std::string& debug_message) +{ + AbortNode(m_exit_status, debug_message); +} + +void KernelNotifications::fatalError(const std::string& debug_message, const bilingual_str& user_message) +{ + node::AbortNode(m_exit_status, debug_message, user_message, m_shutdown_on_fatal_error); +} + } // namespace node |