jsPsych
jsPsych copied to clipboard
Improve error message for survey-text plugin
Just helped troubleshoot a situation where the parameter for the survey-text plugin was set as question
instead of questions
, but the error message generated was not helpful. We should provide a better error message (and generalize this beyond this particular plugin probably!).
my $0.02: could be especially helpful for simulation-related functionality as I constantly find myself forgetting the names of the parameters. Possible error/warning messages could include: "Argument FOO provided in trial definition but not used" "Trial received simulation string BAR but BAR was not defined. Defaulting to DEFAULT behaviour." (warning) "FUZ simulation string defined but not used anywhere." (warning)
I am just starting to use AI assistants (Copilot, Codewhisperer) but it'd be nice to see if popular IDEs can be given sufficient information to detect such mis-namings.