Added friendly error message for production and testing environments