in main.go [115:129]
func processRuncError(err error) int {
if err != nil {
if exit, ok := err.(*exec.ExitError); ok {
// We had a nonzero exitCode
if code, ok := exit.Sys().(syscall.WaitStatus); ok {
// and the code is retrievable
// so we exit with the same code
return code.ExitStatus()
}
}
// If we can't get the error code, still exit with error
return exitCodeFailure
}
return 0
}