summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/exit.go b/exit.go
index e80df8a..fac574b 100644
--- a/exit.go
+++ b/exit.go
@@ -3,6 +3,7 @@ package main
import (
"os"
+ "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -21,3 +22,8 @@ func badExit(err error) {
log.Info("forge failed: ", err, me.forge.GetGoSrc())
os.Exit(-1)
}
+
+func badRepoExit(repo *gitpb.Repo, err error) {
+ log.Printf("forge failed on %s with %v", repo.GetGoPath(), err)
+ os.Exit(-1)
+}