Fix error_reporting in dev mode