From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/system/FatalError.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/system/FatalError.cxx') diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx index 30ddc50ea..65cb9aa26 100644 --- a/src/system/FatalError.cxx +++ b/src/system/FatalError.cxx @@ -17,7 +17,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "config.h" #include "FatalError.hxx" +#include "util/Error.hxx" #include @@ -52,6 +54,12 @@ FormatFatalError(const char *fmt, ...) exit(EXIT_FAILURE); } +void +FatalError(const Error &error) +{ + FatalError(error.GetMessage()); +} + void FatalError(GError *error) { -- cgit v1.2.3