Skip to content

Catch more invalid data sources #373

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

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Catch more invalid data sources #373

merged 2 commits into from
Jun 9, 2023

Conversation

annie
Copy link
Contributor

@annie annie commented Jun 7, 2023

Companion PR to https://github.com/observablehq/observablehq/pull/12427

If a user selects a cell with a primitive value, the call to cache.get throws an "invalid value used as WeakMap key" error. I think it's more informative to show "invalid data source" in that case, and in general I'd like to standardize the error message across all cases where the data source isn't valid.

@annie annie marked this pull request as draft June 7, 2023 18:48
@annie annie marked this pull request as ready for review June 7, 2023 18:56
@annie annie requested review from mbostock and tophtucker June 7, 2023 18:56
Co-authored-by: Mike Bostock <[email protected]>
@annie annie merged commit 1c27e0f into main Jun 9, 2023
@annie annie deleted the annie/invalid-source branch June 9, 2023 18:20
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.

2 participants