Fix return code when no panics have occurred (#1589)

Actually fix #1513
This commit is contained in:
David Zhao
2023-04-07 19:54:30 -07:00
committed by GitHub
parent fb301e6e75
commit 57b931e9bd
+3 -2
View File
@@ -103,8 +103,9 @@ func init() {
func main() {
defer func() {
rtc.Recover(logger.GetLogger())
os.Exit(1)
if rtc.Recover(logger.GetLogger()) != nil {
os.Exit(1)
}
}()
generatedFlags, err := config.GenerateCLIFlags(baseFlags, true)