[geany/geany] 6aaaba: Improve error message on Build->Run errors
Enrico Tröger
git-noreply at xxxxx
Sun Jun 19 23:39:56 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: Sun, 19 Jun 2016 23:39:56 UTC
Commit: 6aaaba6b41119cfbe3705d0c993a5cac3223f085
https://github.com/geany/geany/commit/6aaaba6b41119cfbe3705d0c993a5cac3223f085
Log Message:
-----------
Improve error message on Build->Run errors
Reword the error message and use the full executed command line
in the error message, not only the configured Terminal command.
Fixes #1077.
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