[geany/geany] 3f1408: Improve template command error message

Enrico Tröger git-noreply at xxxxx
Wed Sep 7 07:34:42 UTC 2016


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 07 Sep 2016 07:34:42 UTC
Commit:      3f140861061ad0367f004a06caf391f1b9f94507
             https://github.com/geany/geany/commit/3f140861061ad0367f004a06caf391f1b9f94507

Log Message:
-----------
Improve template command error message

The previous string was a bit confusing what the placeholders
could mean. There was an error in the German translation where
the second placeholder was interpreted as template name instead
of the error message.
This change should make it more clear and also put the error message
to the end of the string.


Modified Paths:
--------------
    src/templates.c

Modified: src/templates.c
5 lines changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -615,8 +615,9 @@ static gchar *run_command(const gchar *command, const gchar *file_name,
 	}
 	else
 	{
-		g_warning(_("Cannot execute command \"%s\" from the template: %s. "
-			"Check the path in the template."), command, error->message);
+		g_warning(_("Cannot execute template command \"%s\". "
+			"Hint: incorrect paths in the command are a common cause of errors. "
+			"Error: %s."), command, error->message);
 		g_error_free(error);
 	}
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list