From f00a167d2f89d575574f9d8868d3fb167822ed8e Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 17 Sep 2008 11:18:53 +0000 Subject: [PATCH] tweaked error message. 2008-09-17 Sven Neumann * plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script): tweaked error message. svn path=/trunk/; revision=26968 --- ChangeLog | 3 +++ plug-ins/script-fu/script-fu-scripts.c | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index eeb8e6afb5..658fc4993a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-09-17 Sven Neumann + * 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. diff --git a/plug-ins/script-fu/script-fu-scripts.c b/plug-ins/script-fu/script-fu-scripts.c index c3a32fa684..84c31cb5ee 100644 --- a/plug-ins/script-fu/script-fu-scripts.c +++ b/plug-ins/script-fu/script-fu-scripts.c @@ -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); }