aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_conf.cxx
diff options
context:
space:
mode:
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;
}