From 38d5436f9b40c71a8e5977c0ae0460960767cb1d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 25 Feb 2025 14:24:43 +0100 Subject: [PATCH] Docs: clarify error message --- src/Logic/Tags/SubstitutingTag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/Tags/SubstitutingTag.ts b/src/Logic/Tags/SubstitutingTag.ts index 12b726986d..25c6cc8a94 100644 --- a/src/Logic/Tags/SubstitutingTag.ts +++ b/src/Logic/Tags/SubstitutingTag.ts @@ -103,7 +103,7 @@ export default class SubstitutingTag extends TagsFilter { asChange(properties: Readonly>): { k: string; v: string }[] { if (this._invert) { - throw "An inverted substituting tag can not be used to create a change" + throw "An inverted substituting tag can not be used to create a change. The offending tag is " + this.asHumanString() } const v = SubstitutingTag.substituteString(this._value, properties) if (v.match(/{.*}/) !== null) {