diff --git a/src/bindx/Bind.hx b/src/bindx/Bind.hx index 7947dd8..ec2e52e 100644 --- a/src/bindx/Bind.hx +++ b/src/bindx/Bind.hx @@ -73,12 +73,12 @@ class Bind { var field:ClassField = classType.findField(field, null); if (field == null) { - Context.error('\'${e.toString()}.$field\' expected', field.pos); + Context.error('\'${e.toString()}.${field.name}\' expected', field.pos); return null; } if (!field.hasBindableMeta()) { - Context.error('\'${e.toString()}.$field\' is not bindable', field.pos); + Context.error('\'${e.toString()}.${field.name}\' is not bindable', field.pos); return null; }