summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index e506b22..44e6989 100644
--- a/main.go
+++ b/main.go
@@ -1,12 +1,19 @@
package main
import (
+ "os"
+
"go.wit.com/lib/protobuf/forgepb"
+ "go.wit.com/log"
)
// go will sit here until the window exits
func main() {
- forge := forgepb.Init()
+ forge, err := forgepb.Init()
+ if err != nil {
+ log.Info("forge not installed", err)
+ os.Exit(-1)
+ }
cmd := []string{"make", "install"}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {