Skip to content

Move exception catch for missing natives#99

Open
kitlith wants to merge 3 commits intobuttplugio:masterfrom
kitlith:move_missing_natives
Open

Move exception catch for missing natives#99
kitlith wants to merge 3 commits intobuttplugio:masterfrom
kitlith:move_missing_natives

Conversation

@kitlith
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

kitlith commented Feb 7, 2023

hm. looks like CI partially broke.

@kitlith
Copy link
Copy Markdown
Contributor Author

kitlith commented Feb 7, 2023

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

@qdot
Copy link
Copy Markdown
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