simplify error matcher