Made ReportError static

Made the ReportError function static.