From bd37cc812f56e78218c27cf68c784d0aa22e225c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 13 Sep 2021 01:20:12 +0200 Subject: [PATCH] Better error message --- UI/Popup/TagRenderingQuestion.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/UI/Popup/TagRenderingQuestion.ts b/UI/Popup/TagRenderingQuestion.ts index 83257f25a7..5f0881d293 100644 --- a/UI/Popup/TagRenderingQuestion.ts +++ b/UI/Popup/TagRenderingQuestion.ts @@ -55,9 +55,8 @@ export default class TagRenderingQuestion extends Combine { const inputElement: InputElement = TagRenderingQuestion.GenerateInputElement(configuration, applicableUnit, tags) if (inputElement === undefined) { - console.trace("MultiAnswer failed", configuration) - const inputElement0: InputElement = 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;