From 71fee0974402702c16b40dc6791196c46fb038bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Dec 2009 16:40:22 +0100 Subject: archive_plugin: use GError in the open() method --- src/update_walk.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/update_walk.c') diff --git a/src/update_walk.c b/src/update_walk.c index f6f924bd6..db3111326 100644 --- a/src/update_walk.c +++ b/src/update_walk.c @@ -394,6 +394,7 @@ update_archive_file(struct directory *parent, const char *name, const struct stat *st, const struct archive_plugin *plugin) { + GError *error = NULL; char *path_fs; struct archive_file *file; struct directory *directory; @@ -409,10 +410,11 @@ update_archive_file(struct directory *parent, const char *name, path_fs = map_directory_child_fs(parent, name); /* open archive */ - file = archive_file_open(plugin, path_fs); + file = archive_file_open(plugin, path_fs, &error); if (file == NULL) { - g_warning("unable to open archive %s", path_fs); g_free(path_fs); + g_warning("%s", error->message); + g_error_free(error); return; } -- cgit v1.2.3