Add deprecation message to error handlers with 3 arguments.