Switch error reporting based on ENV config
Add details