Really libraries should not display errors, they should return error messages to the caller so the caller can decorate it with whatever more information they have.
So spawn_* would return the generic "Failed to find the executable" and the grep caller would combine to make a message like "Failed to execute 'grep': Failed to find executable".
—
Reply to this email directly or view it on GitHub.