diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-18 19:43:58 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-18 19:43:58 +1000 |
commit | 1f756d3d0a14014dedc6dc22e24c5e5ac5261e94 (patch) | |
tree | a9c7affc854feb02e67bfe04c1b7e43a1f0c7da3 /main.go | |
parent | 6473e5ca3cb727d3f6f4cbe132495532a8bfbc0c (diff) |
avoid nil pointer reference on startup
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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() } |