summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-builder/asb-app.c')
-rw-r--r--libappstream-builder/asb-app.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libappstream-builder/asb-app.c b/libappstream-builder/asb-app.c
index b44f091..dba76e8 100644
--- a/libappstream-builder/asb-app.c
+++ b/libappstream-builder/asb-app.c
@@ -161,6 +161,7 @@ asb_app_save_resources (AsbApp *app, AsbAppSaveFlags save_flags, GError **error)
const gchar *tmpdir;
g_autofree gchar *filename = NULL;
g_autofree gchar *size_str = NULL;
+ g_autoptr(GError) error_local = NULL;
/* don't save some types of icons */
icon = g_ptr_array_index (icons, i);
@@ -190,8 +191,12 @@ asb_app_save_resources (AsbApp *app, AsbAppSaveFlags save_flags, GError **error)
return FALSE;
/* optimize the icon */
- if (!asb_utils_optimize_png (filename, error))
- return FALSE;
+ if (!asb_utils_optimize_png (filename, &error_local)) {
+ asb_package_log (priv->pkg,
+ ASB_PACKAGE_LOG_LEVEL_WARNING,
+ "Failed to optimize icon: %s",
+ error_local->message);
+ }
/* set new AppStream compatible icon name */
asb_package_log (priv->pkg,