[geany/geany] a57a10: Merge pull request #1080 from eht16/issue1077_runcmd_error_message

Enrico Tröger git-noreply at xxxxx
Mon Jun 20 21:03:08 UTC 2016


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Mon, 20 Jun 2016 21:03:08 UTC
Commit:      a57a10b20124d8709772dc5e4f01d12315dbed87
             https://github.com/geany/geany/commit/a57a10b20124d8709772dc5e4f01d12315dbed87

Log Message:
-----------
Merge pull request #1080 from eht16/issue1077_runcmd_error_message

Improve error message on Build->Run errors


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

Modified: src/build.c
6 lines changed, 4 insertions(+), 2 deletions(-)
===================================================================
@@ -903,8 +903,10 @@ static void build_run_cmd(GeanyDocument *doc, guint cmdindex)
 		}
 		else
 		{
-			ui_set_statusbar(TRUE, _("Cannot execute terminal command \"%s\": %s. "
-				"Check the path setting in Preferences."), tool_prefs.term_cmd, error->message);
+			gchar *utf8_term_cmd = utils_get_utf8_from_locale(locale_term_cmd);
+			ui_set_statusbar(TRUE, _("Cannot execute build command \"%s\": %s. "
+				"Check the Terminal setting in Preferences"), utf8_term_cmd, error->message);
+			g_free(utf8_term_cmd);
 			g_error_free(error);
 			g_unlink(run_cmd);
 			run_info[cmdindex].pid = (GPid) 0;



--------------
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