error_reporting accordingly to configuration