File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,13 @@ func getFilePath(filename string) string {
89
89
90
90
func CheckErr (err error ) {
91
91
if err != nil {
92
- panic (err )
92
+ fmt .Println (err .Error ())
93
+ Exit ()
93
94
}
94
95
}
95
96
96
97
func Exit () {
97
- os .Exit (0 )
98
+ os .Exit (1 )
98
99
}
99
100
100
101
func AuthInfo (cmd string ) string {
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ func runHelper(cmd *base.Command, args []string) {
22
22
buf .WriteString (base .AuthInfo ("helper" ))
23
23
buf .WriteString ("\n # Helper\n \n " )
24
24
buf .WriteString ("```text\n " )
25
- out , err := exec .Command (base .CmdName ).Output ()
26
- base .CheckErr (err )
25
+ out , _ := exec .Command (base .CmdName ).Output ()
27
26
buf .Write (out )
28
27
buf .WriteString ("```\n " )
29
28
base .FilePutContents ("helper/README.md" , buf .Bytes ())
You can’t perform that action at this time.
0 commit comments