Commit 10d80a6c authored by Jehan's avatar Jehan

plug-ins: try to get more human-readable information on why g_fopen()...

... failed.
See bug 791514. It seems that the file opening fails for webp exporting,
but the error string is not informative enough.
As a general rule, we should have as informative errors as possible.
parent 5bce92be
......@@ -178,8 +178,9 @@ save_layer (const gchar *filename,
{
g_set_error (error, G_FILE_ERROR,
g_file_error_from_errno (errno),
_("Unable to open '%s' for writing"),
gimp_filename_to_utf8 (filename));
_("Unable to open '%s' for writing: %s"),
gimp_filename_to_utf8 (filename),
g_strerror (errno));
break;
}
......@@ -511,8 +512,9 @@ save_animation (const gchar *filename,
{
g_set_error (error, G_FILE_ERROR,
g_file_error_from_errno (errno),
_("Unable to open '%s' for writing"),
gimp_filename_to_utf8 (filename));
_("Unable to open '%s' for writing: %s"),
gimp_filename_to_utf8 (filename),
g_strerror (errno));
status = FALSE;
break;
}
......
Markdown is supported
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