CiscoCloud / distributive

Unit testing for the cloud
Apache License 2.0
147 stars 20 forks source link

Implement global panic handling #62

Closed langston-barrett closed 8 years ago

langston-barrett commented 9 years ago

Panic handling can be done in the main method, by deferring a recovery function immediately. The panic log can be displayed after a helpful message about bug reporting.

langston-barrett commented 8 years ago

It might be helpful to use the same package that Hashicorp uses for their tools such as Terraform, namely, https://github.com/mitchellh/panicwrap.

langston-barrett commented 8 years ago

Closed by #94