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

Better error on Web when missing web_sys_unstable_apis #270

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Mar 27, 2024

Before:

image

After:

image

@Vrixyz
Copy link
Contributor Author

Vrixyz commented Mar 27, 2024

Not 100% sure if include_str! is working as-is when publishing, or if it's good practice to add a folder for the errors, but I think it looks better than the alternative which doubles the error message in a less readable fashion:

image

@Vrixyz Vrixyz force-pushed the 269-better-error-web-sys-unstable branch from 7063851 to eb57930 Compare March 27, 2024 22:26
@mvlabat mvlabat mentioned this pull request Mar 28, 2024
@mvlabat mvlabat merged commit fdd6e2c into mvlabat:main Mar 28, 2024
39 checks passed
@mvlabat
Copy link
Owner

mvlabat commented Mar 28, 2024

Awesome, thanks!

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.

None yet

2 participants