summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-28 19:12:35 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-28 19:12:35 +1000
commit7e1e97d050dd38b08e0131776bf130bae1fb1a4c (patch)
treeddf77f98afc9e005f7a739bef4ba1eb90448bc7b /main.go
parent320ccdb22afc89e7bd77695eafb262281b323095 (diff)
dont panic when catting directories
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.go b/main.go
index 9b3ad9edf..4303af02f 100644
--- a/main.go
+++ b/main.go
@@ -45,11 +45,8 @@ func main() {
app, err := app.NewApp(appConfig)
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
+ app.Log.Error(err.Error())
panic(err)
- // app.Log.Panic(err.Error())
}
app.GitCommand.SetupGit()
app.Gui.RunWithSubprocesses()