Inherit the error_reporting from parent

Relates #12623
Relates #12705