diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 18:02:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 18:14:22 +0200 |
commit | 29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch) | |
tree | 79766830b55ebca38ddbce84d8d548227eedb69e /src/UpdateArchive.cxx | |
parent | c9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff) | |
download | mpd-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-- | src/UpdateArchive.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UpdateArchive.cxx b/src/UpdateArchive.cxx index ab174fa53..2e0755244 100644 --- a/src/UpdateArchive.cxx +++ b/src/UpdateArchive.cxx @@ -29,6 +29,7 @@ #include "ArchivePlugin.hxx" #include "ArchiveFile.hxx" #include "ArchiveVisitor.hxx" +#include "util/Error.hxx" #include <glib.h> @@ -101,11 +102,10 @@ update_archive_file2(Directory *parent, const char *name, const Path path_fs = map_directory_child_fs(parent, name); /* open archive */ - GError *error = NULL; - ArchiveFile *file = archive_file_open(plugin, path_fs.c_str(), &error); + Error error; + ArchiveFile *file = archive_file_open(plugin, path_fs.c_str(), error); if (file == NULL) { - g_warning("%s", error->message); - g_error_free(error); + g_warning("%s", error.GetMessage()); return; } |