aboutsummaryrefslogtreecommitdiffstats
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 18:20:52 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 18:26:46 +0200
commit7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa (patch)
tree03c6b14d6d54f4657aa5939982aec7f942e47c46 /src/system
parent3330aa6f6a7fcd903f74cb8342f315ad35b54ead (diff)
downloadmpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.tar.gz
mpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.tar.xz
mpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.zip
mpd_error.h: remove obsolete header
Migrate the remaining callers to FatalError().
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