chore: type conflict error message (#1093)

This commit is contained in:
ChengLei Shao 2022-11-16 16:40:51 +08:00 committed by GitHub
parent 361df98634
commit ff267456de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`,
); );
} }