Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

handle panics #35

Closed
kamilsk opened this issue Apr 28, 2018 · 0 comments
Closed

handle panics #35

kamilsk opened this issue Apr 28, 2018 · 0 comments

Comments

@kamilsk
Copy link
Owner

kamilsk commented Apr 28, 2018

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant