We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13387b7 commit a894fbaCopy full SHA for a894fba
1 file changed
main.go
@@ -89,11 +89,18 @@ func main() {
89
defer func() {
90
if r := recover(); r != nil {
91
fmt.Println()
92
+
93
+ message := fmt.Sprintf("%v", r)
94
95
+ if obj, ok := r.(*shell.Process); ok {
96
+ message = obj.Debug()
97
+ }
98
99
if len(opts.Verbose) >= 2 {
- fmt.Println(r)
100
+ fmt.Println(message)
101
debug.PrintStack()
102
} else {
103
104
}
105
os.Exit(255)
106
0 commit comments