Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Return error from cmd.Wait() #56

Merged
merged 1 commit into from
May 29, 2017
Merged

Conversation

ethantkoenig
Copy link
Member

Check and return the error returned by cmd.Wait(), instead of quietly logging and ignoring.

Ignoring this error, because the subsequent call to ctx.Err() may return nil even if cmd.Wait() returned an actual error. For instance, git show-ref --verify <non-existent-branch> will fail with a exit code of 128, and cmd.Wait() will return an error, but cmd.Wait() will return nil.

@appleboy
Copy link
Member

LGTM

@sapk
Copy link
Member

sapk commented May 29, 2017

LGTM

@lunny lunny merged commit c98a6f3 into go-gitea:master May 29, 2017
@ethantkoenig ethantkoenig deleted the fix_command branch May 29, 2017 18:17
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