From 6a1ad6a2ece6b8aec8f12a1043bc525a6130db78 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 30 Jun 2023 02:31:23 +0200 Subject: [PATCH] Docs: improve error message --- Logic/Tags/TagUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Tags/TagUtils.ts b/Logic/Tags/TagUtils.ts index ff47a8776d..94c60522b2 100644 --- a/Logic/Tags/TagUtils.ts +++ b/Logic/Tags/TagUtils.ts @@ -509,7 +509,7 @@ export class TagUtils { } if (typeof json != "string") { if (json["and"] !== undefined && json["or"] !== undefined) { - throw `Error while parsing a TagConfig: got an object where both 'and' and 'or' are defined` + throw `Error while parsing a TagConfig: got an object where both 'and' and 'or' are defined. Did you override a value? Perhaps use \`"=parent": { ... }\` instead of \"parent": {...}\` to trigger a replacement and not a fuse of values` } if (json["and"] !== undefined) { return new And(json["and"].map((t) => TagUtils.Tag(t, context)))