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

Move exception catch for missing natives #99

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kitlith
Copy link
Contributor

@kitlith kitlith commented Feb 7, 2023

This should make the "missing natives" exception more visible, since it'll be closer to the top of the stack.

Also added some handling for setting up a log handler.

while I was working on this, I noticed callback = (ctx, str) -> cb.log(str);, which is not a static callback like most/every other callback in this library. i should probably fix that at some point.

This should make the "missing natives" message shows up closer to the
top of the exception stack, making it more visible.
@kitlith
Copy link
Contributor Author

kitlith commented Feb 7, 2023

hm. looks like CI partially broke.

@kitlith
Copy link
Contributor Author

kitlith commented Feb 7, 2023

thought: should i change the message from "missing natives" to "failed to load natives"?

@qdot
Copy link
Member

qdot commented Feb 7, 2023

That's probably a little clearer yeah.

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