Skip to content

Conversation

innermatrix
Copy link

@innermatrix innermatrix commented Dec 1, 2021

Currently, if a variable's value function throws a custom subclass of Error, that custom subclass is lost when the error is converted to RuntimeError, and is subsequently unavailable in the inspector. This PR puts the original error in RuntimeError.cause, thereby making it available to custom inspectors. Behavior of the default inspector is unchanged.

Co-authored-by: Mike Bostock <[email protected]>
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