Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps: include output in error #1180

Merged
merged 3 commits into from
Sep 19, 2017
Merged

gps: include output in error #1180

merged 3 commits into from
Sep 19, 2017

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Sep 18, 2017

What does this do / why do we need it?

Includes a command's stderr in the error string. I was seeing SSL errors with one of my dependencies, and the missing error information was quite annoying.

What should your reviewer look out for in this PR?

Nothing special.

Do you need help or clarification on anything?

No.

Which issue(s) does this PR fix?

None.

@@ -21,41 +21,33 @@ type cmd struct {
ctx context.Context
// cancel is called when the graceful shutdown timeout expires.
cancel context.CancelFunc
cmd *exec.Cmd
Cmd *exec.Cmd
Copy link
Collaborator

@jmank88 jmank88 Sep 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this field being exported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that cmd.go can compile. The windows variant embeds this field directly.

@sdboyer sdboyer merged commit 4cca37b into golang:master Sep 19, 2017
@tamird tamird deleted the errors-with-comands branch September 19, 2017 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants