aboutsummaryrefslogtreecommitdiffstats
path: root/src/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FatalError.cxx6
-rw-r--r--src/system/FatalError.hxx4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx
index 65cb9aa26..7c0dc942a 100644
--- a/src/system/FatalError.cxx
+++ b/src/system/FatalError.cxx
@@ -61,6 +61,12 @@ FatalError(const Error &error)
}
void
+FatalError(const char *msg, const Error &error)
+{
+ FormatFatalError("%s: %s", msg, error.GetMessage());
+}
+
+void
FatalError(GError *error)
{
FatalError(error->message);
diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx
index be67aabbd..03baf66c4 100644
--- a/src/system/FatalError.hxx
+++ b/src/system/FatalError.hxx
@@ -43,6 +43,10 @@ FatalError(const Error &error);
gcc_noreturn
void
+FatalError(const char *msg, const Error &error);
+
+gcc_noreturn
+void
FatalError(GError *error);
gcc_noreturn