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

Update bin/dump_artifacts to catch errors at loadPackage() #798

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

whitphx
Copy link
Owner

@whitphx whitphx commented Mar 21, 2024

pyodide.loadPackage() doesn't throw an error even if it fails to load the package.
It just puts logs as https://github.com/pyodide/pyodide/blob/163a46e3ca5128a5c25b79bb6b4db76b7f5d9b30/src/js/load-package.ts#L529-L536
This PR makes the dump_artifacts script to crash at such an error properly.

Rel: #648 (comment)

@whitphx whitphx marked this pull request as ready for review March 21, 2024 13:04
@whitphx whitphx merged commit ba2abd4 into main Mar 22, 2024
22 checks passed
@whitphx whitphx deleted the feature/catch-error-import-package branch March 22, 2024 06:08
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.

1 participant