error reporting codeing