summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
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)