Closed yorinasub17 closed 4 years ago
I noticed that the user experience for returning ErrorWithExitCode isn't quite great, so I made a few improvements here:
ErrorWithExitCode
WithStackTrace
ErrorWithExitCode{ Err = Deployment failed, ExitCode = 1 }
checkForErrorsAndExit
os.Exit
I'm blocked on this in my other PR so going to go ahead and merge+release this, but feedback is still welcome.
I noticed that the user experience for returning
ErrorWithExitCode
isn't quite great, so I made a few improvements here:WithStackTrace
andErrorWithExitCode
, so that you can get both a stack trace and exit with exit code.ErrorWithExitCode{ Err = Deployment failed, ExitCode = 1 }
checkForErrorsAndExit
so we can test the exit code functionality without the test exiting due to the call toos.Exit
.