fix name of function in catchError.re