client side error reporting