fix error messages text
This commit is contained in:
@@ -65,17 +65,17 @@ class BindMacros {
|
|||||||
error = new GenericError('\'${e.toString()}\' must be bindx.IBindable', e.pos);
|
error = new GenericError('\'${e.toString()}\' must be bindx.IBindable', e.pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
var field = classType.findField(field, null);
|
var classField = classType.findField(field, null);
|
||||||
if (field == null) {
|
if (classField == null) {
|
||||||
throw new FatalError('\'${e.toString()}.${field.name}\' expected', field.pos);
|
throw new FatalError('\'${type.toString()}.${field}\' expected', e.pos);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!field.hasBindableMeta()) {
|
if (!classField.hasBindableMeta()) {
|
||||||
error = new GenericError('\'${e.toString()}.${field.name}\' is not bindable', field.pos);
|
error = new GenericError('\'${type.toString()}.${classField.name}\' is not bindable', classField.pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {e:e, field:field, error:error};
|
return {e:e, field:classField, error:error};
|
||||||
|
|
||||||
case EConst(CIdent(_)):
|
case EConst(CIdent(_)):
|
||||||
return {e:f, field:null, error:new GenericError('Can\'t bind \'${f.toString()}\'. Please use \'this.${f.toString()}\'', f.pos)};
|
return {e:f, field:null, error:new GenericError('Can\'t bind \'${f.toString()}\'. Please use \'this.${f.toString()}\'', f.pos)};
|
||||||
|
|||||||
Reference in New Issue
Block a user