summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/exit.go b/exit.go
index d317d3b..7b9fa8c 100644
--- a/exit.go
+++ b/exit.go
@@ -23,7 +23,14 @@ func okExit(thing string) {
}
func badExit(err error) {
- log.Info("forge failed: ", err, me.forge.Config.ReposDir)
+ log.Info(err)
+ log.Info("forge failed")
+ os.Exit(-1)
+}
+
+func newBadExit(msg string, err error) {
+ log.Info(err)
+ log.Info(msg)
os.Exit(-1)
}