Fix custom command spawning error message

They are configured in Custom Commands, not Preferences.
Also fix the duplicated g_error_free().
This commit is contained in:
Dimitar Zhekov 2015-11-01 16:19:40 +02:00
parent a99454f4a0
commit 6390830953

View File

@ -240,8 +240,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
else
{
ui_set_statusbar(TRUE, _("Cannot execute custom command \"%s\": %s. "
"Check the path setting in Preferences."), command, error->message);
g_error_free(error);
"Check the path setting in Custom Commands."), command, error->message);
g_error_free(error);
}