There was an error while loading. Please reload this page.
1 parent ae1bf37 commit 455c8c4Copy full SHA for 455c8c4
sync/helper.go
@@ -59,8 +59,7 @@ func RsyncPath(name string) string {
59
}
60
61
func ShellErrorHandler(recover interface{}) {
62
-process, ok := recover.(*shell.Process)
63
-if ok {
+if process, ok := recover.(*shell.Process); ok {
64
p := process.ExitStatus
65
p = 2
66
if p != 0 {
@@ -82,7 +81,7 @@ func ShellErrorHandler(recover interface{}) {
82
81
83
os.Exit(2)
84
85
-} else {
+} else if recover != nil {
86
fmt.Print("ERROR:")
87
fmt.Println(recover)
88
debug.PrintStack()
0 commit comments