add deprecation warning for ctx.error

Didn't notice the change until now. A warning would be useful
Merge pull request #118 from eivindfjeldstad/patch-1

add deprecation warning for ctx.error