Revert "error_reporting accordingly to configuration"

This reverts commit 973e63f7c6ad82c3dd9db4ff965e0dadf15f1d88.