add error report to global