From 15453a27bda1849f420a379ea4e3a5bbaaf29b11 Mon Sep 17 00:00:00 2001 From: anthonypetersen Date: Mon, 24 Jun 2024 16:16:14 -0500 Subject: [PATCH] added logging information --- questionnaire.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionnaire.js b/questionnaire.js index 4222b5b..2f4dccd 100644 --- a/questionnaire.js +++ b/questionnaire.js @@ -1050,7 +1050,7 @@ function exitLoop(nextElement) { let loopIndex = parseInt(nextElement.getAttribute("loopindx")); if (isNaN(loopMax) || isNaN(firstQuestion) || isNaN(loopIndex)) { - console.error(`LoopMax, firstQuestion, or loopIndex is NaN for ${nextElement.id}`); + console.error(`LoopMax, firstQuestion, or loopIndex is NaN for ${nextElement.id}: loopMax=${loopMax}, firstQuestion=${firstQuestion}, loopIndex=${loopIndex}`); return nextElement; }