client side error logging