Skip to content

Commit

Permalink
added logging information
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonypetersen committed Jun 24, 2024
1 parent 3be91be commit 15453a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 15453a2

Please sign in to comment.