summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorAnthony HAMON <hamon.anth@gmail.com>2018-08-29 21:47:48 +0200
committerAnthony HAMON <hamon.anth@gmail.com>2018-09-04 06:21:58 +0200
commit624d63d2fa90ad62998a62d8d17189cf0406864b (patch)
treef525a8c2782dd284492a941bd5dc8f3808d669de /main.go
parent19a80297950153a694be0ee94f7c3fdff614fa7e (diff)
pkg/git : remove panic in SetupGit method
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 4303af02f..6193f43d3 100644
--- a/main.go
+++ b/main.go
@@ -48,6 +48,12 @@ func main() {
app.Log.Error(err.Error())
panic(err)
}
- app.GitCommand.SetupGit()
+
+ if err := app.GitCommand.SetupGit(); err != nil {
+ app.Log.Error(err.Error())
+ fmt.Println(err)
+ os.Exit(1)
+ }
+
app.Gui.RunWithSubprocesses()
}