should not exit with 0 when panic happens (#507)

This commit is contained in:
Minghe
2020-04-10 17:10:03 +08:00
committed by GitHub
parent 4527da6251
commit b69cf16250

3
fx.go
View File

@@ -19,7 +19,7 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)
const version = "0.9.34"
const version = "0.9.35"
func init() {
go checkForUpdate()
@@ -77,6 +77,7 @@ func main() {
fmt.Println(aurora.Red("*****************"))
fmt.Println(r)
fmt.Println(aurora.Red("*****************"))
os.Exit(1)
}
}()
user, err := user.Current()