summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-15 17:03:51 -0600
committerJeff Carr <[email protected]>2024-12-15 17:03:51 -0600
commit8e9408bac890dd6a09ebb5a7fed752fa9a35a73e (patch)
tree0bd307372dc4ac8b842a5f441343141e7cc5d12d /http.go
parent24ddb803f3e6509f55c6ef4a033175f4fd00f26d (diff)
don't os.exit anymore as oftenv0.23.0
Diffstat (limited to 'http.go')
-rw-r--r--http.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/http.go b/http.go
index 78e5365..a0b8d9c 100644
--- a/http.go
+++ b/http.go
@@ -1,6 +1,7 @@
package main
import (
+ "errors"
"fmt"
"net/http"
"os"
@@ -178,10 +179,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
case "/releaseList":
PrintReleaseReport(readonly, perfect)
return
- case "/quit":
- log.Info("Got URL /quit")
- os.Exit(0)
- return
case "/goweblist":
loop := me.repos.View.ReposAll()
for loop.Scan() {
@@ -289,8 +286,8 @@ func showNext() {
if ok, compiled, err := me.current.IsProtobuf(); ok {
log.Info(log.Sprint("IsProtobuf() == true compiled protobuf files = ", compiled))
if err != nil {
- log.Info(log.Sprint("IsProtobuf() == err", err))
- os.Exit(-1)
+ msg := fmt.Sprint("IsProtobuf() == err", err)
+ badExit(errors.New(msg))
}
for _, s := range compiled {
log.Info("\tcompiled file found:", s)