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:
Sven Neumann
2008-09-17 11:18:53 +00:00
committed by Sven Neumann
parent 3fe2b1cb5a
commit f00a167d2f
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
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
PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
interpreting the script.

View File

@ -706,10 +706,13 @@ script_fu_load_script (const GimpDatafileData *file_data,
if (! script_fu_run_command (command, &error))
{
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_free (message);
g_free (display_name);
}