libgimpcolor: better error messages in GimpColorProfile and GimpColorTransform
(cherry picked from commit 890b554230
)
This commit is contained in:
@ -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",
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user