Refined client side error logging