Skip to content

Commit e625338

Browse files
ivanmatmatioktalz
authored andcommitted
MINOR: add recover in main.go to report silent error
1 parent 4c2a6b9 commit e625338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func main() {
4141
_, err := parser.Parse()
4242
exitCode := 0
4343
defer func() {
44+
if r := recover(); r != nil {
45+
fmt.Println("Error : ", r)
46+
}
4447
os.Exit(exitCode)
4548
}()
4649
if err != nil {

0 commit comments

Comments
 (0)