chore: type conflict error message (#1093)
This commit is contained in:
parent
361df98634
commit
ff267456de
@ -188,7 +188,7 @@ export class Collection<
|
|||||||
|
|
||||||
if (oldField && oldField.options.inherit && options.type != oldField.options.type) {
|
if (oldField && oldField.options.inherit && options.type != oldField.options.type) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Field type conflict: cannot set "${name}" to ${options.type}, parent "${name}" type is ${oldField.options.type}`,
|
`Field type conflict: cannot set "${name}" on "${this.name}" to ${options.type}, parent "${name}" type is ${oldField.options.type}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user