Skip to content

Shared: Nicer panic message if node kind is missing#21815

Draft
asgerf wants to merge 2 commits intogithub:mainfrom
asgerf:asgerf/missing-node-kind-error
Draft

Shared: Nicer panic message if node kind is missing#21815
asgerf wants to merge 2 commits intogithub:mainfrom
asgerf:asgerf/missing-node-kind-error

Conversation

@asgerf
Copy link
Copy Markdown
Contributor

@asgerf asgerf commented May 8, 2026

In the shared tree-sitter extractor, a panic is raised if we encounter a node that is not present in the target schema. The message is just a generic failure from calling None.unwrap() however, so it's not very helpful. This PR replaces it with a more helpful panic message.

asgerf and others added 2 commits May 8, 2026 13:23
Still panics, just with a better message
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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