libgimpcolor: better error messages in GimpColorProfile and GimpColorTransform

(cherry picked from commit 890b554230)
This commit is contained in:
Michael Natterer
2019-05-28 17:37:08 +02:00
parent 788c09259c
commit fa173b9675
2 changed files with 3 additions and 3 deletions

View File

@ -1640,7 +1640,7 @@ gimp_color_profile_get_lcms_format (const Babl *format,
} }
else else
{ {
g_printerr ("format: %s\n" g_printerr ("format not supported: %s\n"
"has_alpha = %s\n" "has_alpha = %s\n"
"type = %s\n" "type = %s\n"
"model = %s\n", "model = %s\n",

View File

@ -204,7 +204,7 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
&error); &error);
if (! priv->src_space_format) if (! priv->src_space_format)
{ {
g_printerr ("%s: error making format: %s\n", g_printerr ("%s: error making src format: %s\n",
G_STRFUNC, error->message); G_STRFUNC, error->message);
g_clear_error (&error); g_clear_error (&error);
} }
@ -215,7 +215,7 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
&error); &error);
if (! priv->dest_space_format) if (! priv->dest_space_format)
{ {
g_printerr ("%s: error making format: %s\n", g_printerr ("%s: error making dest format: %s\n",
G_STRFUNC, error->message); G_STRFUNC, error->message);
g_clear_error (&error); g_clear_error (&error);
} }