kamilsk / check

🔬 Tool to check something.
MIT License
7 stars 0 forks source link

handle panics #35

Closed kamilsk closed 6 years ago

kamilsk commented 6 years ago
not handled panic in goroutines
    if err := func() (err error) {
        defer grace.Recover(&err)
        err = cmd.RootCmd.Execute()
        return
    }(); err != nil {
if goroutine has recover then data race is appeared

...
==================
Found 1 data race(s)
exit status 66
make: *** [cmd-urls] Error 1