Client side error infrastructure