Error() does not return message

a.sh is not exits, but process.Error() only return [127] and a blank line. I hope that it returns “no such file”
It should be "return fmt.Errorf("[%v] %s\n", p.ExitStatus, errlines[:s])" in Error() not "return fmt.Errorf("[%v] %s\n", p.ExitStatus, errlines[s])"
A PR would taken for this!
On Wed, Dec 12, 2018 at 5:02 AM liujin1993 [email protected] wrote:
It should be "return fmt.Errorf("[%v] %s\n", p.ExitStatus, errlines[:s])" in Error() not "return fmt.Errorf("[%v] %s\n", p.ExitStatus, errlines[s])"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/progrium/go-shell/issues/5#issuecomment-446548299, or mute the thread https://github.com/notifications/unsubscribe-auth/AAACh73vz5TfS_CYnbyjAXsMzxNJKz4tks5u4OJSgaJpZM4ZNpK0 .
-- Jeff Lindsay http://progrium.com