Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenkoehler committed Feb 11, 2024
1 parent 47ef438 commit 1984bae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@ func (*DefaultDependencies) KongExit() func(int) {
}

func main() {
defer func() {
if r := recover(); r != nil {
os.Exit(1)
}
}()

chdiff.Chdiff(_Version, os.Args, &DefaultDependencies{})
}

0 comments on commit 1984bae

Please sign in to comment.