Commit 86f4cd39 authored by Nils Philippsen's avatar Nils Philippsen
Browse files

file-cel: use g_set_error() for errors instead of g_message()

parent 69b98191
......@@ -426,7 +426,7 @@ load_image (const gchar *file,
if (image == -1)
{
g_message (_("Can't create a new image"));
g_set_error (error, 0, 0, _("Can't create a new image"));
fclose (fp);
return -1;
}
......@@ -540,7 +540,8 @@ load_image (const gchar *file,
break;
default:
g_message (_("Unsupported bit depth (%d)!"), bpp);
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Unsupported bit depth (%d)!"), bpp);
return -1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment