Skip to content

Commit

Permalink
Merge pull request #27230 from jluhrsen/mysterious-exit
Browse files Browse the repository at this point in the history
Bug 2084361: Print error msg before os.Exit()
  • Loading branch information
openshift-merge-robot committed Jun 9, 2022
2 parents 8572f00 + e4869ed commit 6c2ae5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/openshift-tests/openshift-tests.go
Expand Up @@ -94,6 +94,7 @@ func main() {
return root.Execute()
}(); err != nil {
if ex, ok := err.(testginkgo.ExitError); ok {
fmt.Fprintf(os.Stderr, "Ginkgo exit error %d: %v\n", ex.Code, err)
os.Exit(ex.Code)
}
fmt.Fprintf(os.Stderr, "error: %v\n", err)
Expand Down

0 comments on commit 6c2ae5b

Please sign in to comment.