only email on error if ERROR_EMAIL is set