remove all os.Exit() to stabilize things
This commit is contained in:
parent
96a063a15a
commit
21ab45b3f5
5
sort.go
5
sort.go
|
@ -133,9 +133,8 @@ func iterNext(w io.Writer, names map[string]string) {
|
|||
fmt.Fprintln(w, " for i, d := range it.packs {")
|
||||
fmt.Fprintln(w, " fmt.Println(\"i =\", i, d)")
|
||||
fmt.Fprintln(w, " }")
|
||||
fmt.Fprintln(w, " fmt.Println(\"protobuf autogenpb sort error len =\", len(it.packs))")
|
||||
fmt.Fprintln(w, " fmt.Println(\"protobuf autogenpb sort error next == nil\", it.index, it.index-1)")
|
||||
fmt.Fprintln(w, " os.Exit(-1)")
|
||||
fmt.Fprintln(w, " // fmt.Println(\"protobuf autogenpb sort error len =\", len(it.packs))")
|
||||
fmt.Fprintln(w, " // fmt.Println(\"protobuf autogenpb sort error next == nil\", it.index, it.index-1)")
|
||||
fmt.Fprintln(w, " }")
|
||||
fmt.Fprintln(w, " return it.packs[it.index-1]")
|
||||
fmt.Fprintln(w, "}")
|
||||
|
|
Loading…
Reference in New Issue