aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_conf.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 18:02:44 +0200
committerMax Kellermann <max@duempel.org>2013-09-04 18:14:22 +0200
commit29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch)
tree79766830b55ebca38ddbce84d8d548227eedb69e /test/read_conf.cxx
parentc9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff)
downloadmpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to '')
-rw-r--r--test/read_conf.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/read_conf.cxx b/test/read_conf.cxx
index 79f3eca54..55ff8c068 100644
--- a/test/read_conf.cxx
+++ b/test/read_conf.cxx
@@ -20,6 +20,7 @@
#include "config.h"
#include "conf.h"
#include "fs/Path.hxx"
+#include "util/Error.hxx"
#include <glib.h>
@@ -50,10 +51,9 @@ int main(int argc, char **argv)
config_global_init();
- GError *error = NULL;
- if (!ReadConfigFile(config_path, &error)) {
- g_printerr("%s:", error->message);
- g_error_free(error);
+ Error error;
+ if (!ReadConfigFile(config_path, error)) {
+ g_printerr("%s:", error.GetMessage());
return 1;
}