From 21ab45b3f59a0d36fd121b2edf3808eb39330551 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 14 Dec 2024 16:27:29 -0600 Subject: [PATCH] remove all os.Exit() to stabilize things --- sort.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sort.go b/sort.go index 70e912d..fe06e31 100644 --- a/sort.go +++ b/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, "}")