Add error messages in transformers.