client side error handling