[Github-comments] [geany] Alter spawn to return the error message only in error->message (#701)

Colomban Wendling notifications at xxxxx
Thu Oct 29 18:50:07 UTC 2015


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

Custom commands are not configured in the Preferences (although they probably should, but that's another topic) but in their own dialog (*Edit → Format → Send Selection to → Set Custom Commands*).

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/701/files#r43428515
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151029/fef9eaae/attachment.html>


More information about the Github-comments mailing list