Skip to content

Commit

Permalink
Improve error message on Build->Run errors
Browse files Browse the repository at this point in the history
Reword the error message and use the full executed command line
in the error message, not only the configured Terminal command.

Fixes #1077.
  • Loading branch information
eht16 committed Jun 19, 2016
1 parent b28d14b commit 6aaaba6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build.c
Expand Up @@ -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;
Expand Down

0 comments on commit 6aaaba6

Please sign in to comment.