From ff267456de5d77cee82cd7966364898f1f31482b Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Wed, 16 Nov 2022 16:40:51 +0800 Subject: [PATCH] chore: type conflict error message (#1093) --- packages/core/database/src/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/database/src/collection.ts b/packages/core/database/src/collection.ts index c37feb610..7fe099630 100644 --- a/packages/core/database/src/collection.ts +++ b/packages/core/database/src/collection.ts @@ -188,7 +188,7 @@ export class Collection< if (oldField && oldField.options.inherit && options.type != oldField.options.type) { 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}`, ); }