runtime
runtime copied to clipboard
Propagate original error in RuntimeError.cause (#1)
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.