added check for DEVELOPMENT_ENVIRONMENT before dumping the error