better messages for transformation errors