tweaked error message.
2008-09-17 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script): tweaked error message. svn path=/trunk/; revision=26968
This commit is contained in:

committed by
Sven Neumann

parent
3fe2b1cb5a
commit
f00a167d2f
@ -1,5 +1,8 @@
|
|||||||
2008-09-17 Sven Neumann <sven@gimp.org>
|
2008-09-17 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script):
|
||||||
|
tweaked error message.
|
||||||
|
|
||||||
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): set the
|
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): set the
|
||||||
PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
|
PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
|
||||||
interpreting the script.
|
interpreting the script.
|
||||||
|
@ -706,10 +706,13 @@ script_fu_load_script (const GimpDatafileData *file_data,
|
|||||||
if (! script_fu_run_command (command, &error))
|
if (! script_fu_run_command (command, &error))
|
||||||
{
|
{
|
||||||
gchar *display_name = g_filename_display_name (file_data->filename);
|
gchar *display_name = g_filename_display_name (file_data->filename);
|
||||||
|
gchar *message = g_strdup_printf (_("Error while loading %s:"),
|
||||||
|
display_name);
|
||||||
|
|
||||||
|
g_message ("%s\n\n%s", message, error->message);
|
||||||
|
|
||||||
g_message (_("Error while loading\n\"%s\"\n\n%s"),
|
|
||||||
display_name, error->message);
|
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
g_free (message);
|
||||||
g_free (display_name);
|
g_free (display_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user