Skip to content

Commit

Permalink
added capture of panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
dalzilio committed Feb 23, 2023
1 parent f5af70a commit 983c292
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/uwalk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ func main() {

sort.Ints(selectQueries)

// // we capture panics
// defer func() {
// if r := recover(); r != nil {
// log.Fatal("error in generation: cannot compute")
// os.Exit(1)
// }
// }()
// we capture panics
defer func() {
if r := recover(); r != nil {
log.Fatal("error in generation: cannot compute")
os.Exit(1)
}
}()

// ----------------------------------------------------------------------
// Parsing model
Expand Down

0 comments on commit 983c292

Please sign in to comment.