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 a57857c commit e0c9e01Copy full SHA for e0c9e01
main.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"path"
8
"strings"
9
+ "runtime/debug"
10
flags "github.com/jessevdk/go-flags"
11
"github.com/webdevops/go-shell"
12
"gopkg.in/AlecAivazis/survey.v1"
@@ -122,6 +123,19 @@ func getArgServer(config *sync.SyncConfig, confType string) string {
122
123
}
124
125
func main() {
126
+ defer func() {
127
+ if r := recover(); r != nil {
128
+ fmt.Println()
129
+ if len(opts.Verbose) >= 2 {
130
+ fmt.Println(r)
131
+ debug.PrintStack()
132
+ } else {
133
134
+ }
135
+ os.Exit(255)
136
137
+ }()
138
+
139
createArgparser()
140
141
argCommand := strings.ToLower(opts.Positional.Command)
0 commit comments