forked from MapComplete/MapComplete
Fix: improve error message
This commit is contained in:
parent
5585f02cad
commit
7f6c1f06e2
1 changed files with 3 additions and 4 deletions
|
@ -301,10 +301,9 @@ export class TagUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.error("Invalid type to flatten the multiAnswer", tagsFilter)
|
console.error("Invalid type to flatten the multiAnswer", tagsFilter)
|
||||||
throw (
|
throw `Invalid type to FlattenMultiAnswer, not one of ${
|
||||||
"Invalid type to FlattenMultiAnswer, not one of RegexTag, Tag or And: " +
|
allowRegex ? "RegexTag, " : ""
|
||||||
tagsFilter.asHumanString(false, false, {})
|
}Tag or And: ${tagsFilter.asHumanString(false, false, {})}`
|
||||||
)
|
|
||||||
}
|
}
|
||||||
return keyValues
|
return keyValues
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue