diff src/editors.c @ 670:a484500de88d

Improve editor commands error display: - display all errors (not only syntax errors) - display errors from Preferences (checks are made on Apply or OK)
author zas_
date Fri, 16 May 2008 09:10:56 +0000
parents dd5d7fe9458f
children 8268cbe682f1
line wrap: on
line diff
--- a/src/editors.c	Fri May 16 08:37:07 2008 +0000
+++ b/src/editors.c	Fri May 16 09:10:56 2008 +0000
@@ -814,9 +814,9 @@
 	error = editor_command_start(command, options->editor_name[n], list, cb, data);
 	g_free(command);
 
-	if (n < GQ_EDITOR_GENERIC_SLOTS && (error & EDITOR_ERROR_SYNTAX))
+	if (n < GQ_EDITOR_GENERIC_SLOTS && (error & EDITOR_ERROR_MASK))
 		{
-		gchar *text = g_strdup_printf(_("Syntax error in the editor template \"%s\":\n%s"),
+		gchar *text = g_strdup_printf(_("%s\n#%d \"%s\":\n%s"), editor_get_error_str(error), n+1,
 					      options->editor_name[n], options->editor_command[n]);
 		
 		file_util_warning_dialog(_("Invalid editor command"), text, GTK_STOCK_DIALOG_ERROR, NULL);