mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix: error message of uid field
This commit is contained in:
parent
e8138816f2
commit
9120955733
@ -17,7 +17,9 @@ export class UidField extends Field {
|
||||
} else if (re.test(value)) {
|
||||
instance.set(name, value);
|
||||
} else {
|
||||
throw new Error(`Field names can only include A-Z, a-z, 0-9, _-*$, '${value}' is invalid`);
|
||||
throw new Error(
|
||||
`${this.collection.name}.${this.options.name} can only include A-Z, a-z, 0-9, _-*$, '${value}' is invalid`,
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user