Add error report helper.
fix an error.