summaryrefslogtreecommitdiff
path: root/libappstream-builder
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-11-03 11:42:56 +0000
committerRichard Hughes <richard@hughsie.com>2017-11-03 11:45:02 +0000
commit64c5077baddbb290c6f886d1e25afce0a2c572ce (patch)
treea0281e48a76cb07f5dd326e31fda7ab051a932a1 /libappstream-builder
parent1db3b0df8cbe2db907d44207defa0b7402594c6e (diff)
downloadappstream-glib-64c5077baddbb290c6f886d1e25afce0a2c572ce.tar.gz
trivial: Show a useful error message if decompressing a package fails
Diffstat (limited to 'libappstream-builder')
-rw-r--r--libappstream-builder/asb-task.c3
-rw-r--r--libappstream-builder/asb-utils.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index 2210c6a..c98d432 100644
--- a/libappstream-builder/asb-task.c
+++ b/libappstream-builder/asb-task.c
@@ -396,7 +396,8 @@ asb_task_process (AsbTask *task, GError **error)
priv->tmpdir,
asb_context_get_file_globs (priv->ctx),
error)) {
- g_prefix_error (error, "Failed to explode: ");
+ g_prefix_error (error, "Failed to explode %s: ",
+ asb_package_get_basename (priv->pkg));
return FALSE;
}
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c
index 6b11ca0..e5dd813 100644
--- a/libappstream-builder/asb-utils.c
+++ b/libappstream-builder/asb-utils.c
@@ -418,7 +418,8 @@ asb_utils_explode (const gchar *filename,
g_set_error (error,
ASB_PLUGIN_ERROR,
ASB_PLUGIN_ERROR_FAILED,
- "Cannot extract: %s",
+ "Cannot extract %s: %s",
+ archive_entry_pathname (entry),
archive_error_string (arch));
goto out;
}