summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-18 19:43:58 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-18 19:43:58 +1000
commit1f756d3d0a14014dedc6dc22e24c5e5ac5261e94 (patch)
treea9c7affc854feb02e67bfe04c1b7e43a1f0c7da3 /main.go
parent6473e5ca3cb727d3f6f4cbe132495532a8bfbc0c (diff)
avoid nil pointer reference on startup
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9bbf0eec1..b8b9af931 100644
--- a/main.go
+++ b/main.go
@@ -53,7 +53,13 @@ func main() {
}
app, err := app.NewApp(appConfig)
- app.Log.Info(err)
+ if err != nil {
+ // TODO: remove this call to panic after anonymous error reporting
+ // is setup (right now the call to panic logs nothing to the screen which
+ // would make debugging difficult
+ panic(err)
+ // app.Log.Panic(err.Error())
+ }
app.GitCommand.SetupGit()
app.Gui.RunWithSubprocesses()
}