Issue #24528:use errorReporter