Updated ErrorReporter implementation to include a "hasError" method