From 6aaaba6b41119cfbe3705d0c993a5cac3223f085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 20 Jun 2016 01:39:56 +0200 Subject: [PATCH] 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. --- src/build.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/build.c b/src/build.c index 3e19d2f9c0..3cfcbe4238 100644 --- a/src/build.c +++ b/src/build.c @@ -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;