diff options
author | Richard Hughes <richard@hughsie.com> | 2012-10-01 13:58:18 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2012-10-01 13:58:18 +0100 |
commit | 8ea9c5a26da27c8a05c206ad86a10d1f3b53e87f (patch) | |
tree | 5175419fbe187beefe595b9828c3e6f41ba5f08b /client | |
parent | 5c185b5b28c3d4e930a87474ec48937db15d536b (diff) | |
download | colord-8ea9c5a26da27c8a05c206ad86a10d1f3b53e87f.tar.gz |
Fix a critical warning when user tries to dump a non-icc file
Diffstat (limited to 'client')
-rw-r--r-- | client/cd-fix-profile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/cd-fix-profile.c b/client/cd-fix-profile.c index fb38723..40ce1e1 100644 --- a/client/cd-fix-profile.c +++ b/client/cd-fix-profile.c @@ -915,7 +915,9 @@ cd_util_dump (CdUtilPrivate *priv, gchar **values, GError **error) g_print ("Using filename %s\n", values[0]); lcms_profile = cmsOpenProfileFromFile (values[0], "r"); if (lcms_profile == NULL) { - g_warning ("failed to open profile %s", values[0]); + g_set_error (error, 1, 0, + "failed to open profile %s", + values[0]); ret = FALSE; goto out; } |