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

Fix: WrapError now correctly parsing Rust unwrap errors #1556

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

krisbitney
Copy link
Contributor

When calling .unwrap() on a Rust result that contains an error, Rust will panic with an error message that contains the Err. For fidelity to the original Err, Rust inserts escape characters in the string. For example, "\n" becomes "\\n". This behavior was not being handled correctly by WrapError's string parsing logic.

@krisbitney krisbitney changed the title Fix: WrapError now correclty parsing Rust unwrap errors Fix: WrapError now correctly parsing Rust unwrap errors Feb 16, 2023
@dOrgJelli
Copy link
Contributor

Great catch @krisbitney, should this also be a patch for 0.9?

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