summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index bf774c6..7885571 100644
--- a/main.go
+++ b/main.go
@@ -23,9 +23,13 @@ var workingRepo *gitpb.Repo
func main() {
auto = prep.Bash3(&argv) // does shell autocomplete with go-args
- forge = forgepb.Init()
-
var err error
+ forge, err = forgepb.Init()
+ if err != nil {
+ log.Info("This tool requires forge")
+ badExit(err)
+ }
+
// attempt to clone, returns *gitpb.Repo
workingRepo, err = clone(argv.Repo)
if err != nil {