Check choice before process

This commit is contained in:
Marcus Kammer 2023-09-20 10:37:58 +02:00
parent 4ece9dd455
commit 922f6a8f3f

View file

@ -124,6 +124,8 @@ Returns:
(funcall (choose-input-form type) type group item))
(defmacro process-choice (group choice)
(unless (choicep choice)
(error "Invalid question format: ~a" choice))
(multiple-value-bind (type values)
(resolve-input-and-choice choice)
(if (string= type "combo")