diff --git a/src/Logic/Tags/TagUtils.ts b/src/Logic/Tags/TagUtils.ts index 1893399cec..92c23252ca 100644 --- a/src/Logic/Tags/TagUtils.ts +++ b/src/Logic/Tags/TagUtils.ts @@ -301,10 +301,9 @@ export class TagUtils { } console.error("Invalid type to flatten the multiAnswer", tagsFilter) - throw ( - "Invalid type to FlattenMultiAnswer, not one of RegexTag, Tag or And: " + - tagsFilter.asHumanString(false, false, {}) - ) + throw `Invalid type to FlattenMultiAnswer, not one of ${ + allowRegex ? "RegexTag, " : "" + }Tag or And: ${tagsFilter.asHumanString(false, false, {})}` } return keyValues }