avoid nil pointer reference on startup

This commit is contained in:
Jesse Duffield 2018-08-18 19:43:58 +10:00
parent 6473e5ca3c
commit 1f756d3d0a
2 changed files with 11 additions and 5 deletions

View file

@ -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()
}