Better error message

This commit is contained in:
pietervdvn 2021-09-13 01:20:12 +02:00
parent 701f066139
commit bd37cc812f

View file

@ -55,9 +55,8 @@ export default class TagRenderingQuestion extends Combine {
const inputElement: InputElement<TagsFilter> = TagRenderingQuestion.GenerateInputElement(configuration, applicableUnit, tags)
if (inputElement === undefined) {
console.trace("MultiAnswer failed", configuration)
const inputElement0: InputElement<TagsFilter> = TagRenderingQuestion.GenerateInputElement(configuration, applicableUnit, tags)
console.error("MultiAnswer failed - probably not a single option was possible", configuration)
throw "MultiAnswer failed - probably not a single option was possible"
}
const save = () => {
const selection = inputElement.GetValue().data;