centralise the error_reporting in one place, in init
Merge remote-tracking branch 'origin/master'