Added setter for error_reporting