add deprecation warning for ctx.error

Didn't notice the change until now. A warning would be useful