We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd59fb commit 0d745e6Copy full SHA for 0d745e6
pkg/git/git.go
@@ -33,10 +33,14 @@ func commit(cmdGit *exec.Cmd, message ...interface{}) {
33
fmt.Println(color.Gray("-------------------------------"))
34
fmt.Println("")
35
cmdGit.Stdout = os.Stdout
36
- cmdGit.Run()
+ err := cmdGit.Run()
37
38
39
- fmt.Println(color.Green("Done \U0001F604"))
+ if err == nil {
40
+ fmt.Println(color.Green("Done \U0001F604"))
41
+ } else {
42
+ fmt.Println(color.Red("Something went grong \U0001F92F"))
43
+ }
44
45
return
46
}
0 commit comments