Tweaking error_reporting for when debug=false.