Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message for missing type parameter #3477

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

rkilpadi
Copy link
Contributor

@rkilpadi rkilpadi commented Jan 4, 2025

A missing type parameter returns unfriendly errors such as TypeError: Cannot read properties of undefined (reading 'info').
Added a clearer error message with a check that the type parameter is provided and is associated with an info object.

Testing

npm test

@jodeleeuw
Copy link
Member

Thanks @rkilpadi!

This isn't directed at anyone in particular: Curious that changesets bot didn't comment on this PR. Seeing if this comment will trigger it.

Copy link

changeset-bot bot commented Jan 5, 2025

🦋 Changeset detected

Latest commit: ff5f67b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
jspsych Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bjoluc
Copy link
Member

bjoluc commented Jan 6, 2025

Curious that changesets bot didn't comment on this PR.

@jodeleeuw We didn't approve the workflow runs on this PR – I didn't find the button here as well with GH's ✨ new merge experience ✨; had to go to the workflows list manually and approve the runs 🥴

From the GH feedback discussion:

Features currently missing, but are coming:

  • Approving GitHub Actions workflows

I'm back to classic for now 🙈

@jodeleeuw jodeleeuw merged commit 9d8597f into jspsych:main Jan 7, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants