Skip to content

Commit

Permalink
doc: sync comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Reichold <adamreichold@users.noreply.github.com>
  • Loading branch information
BlueGlassBlock and adamreichold committed May 8, 2023
1 parent fc657ff commit 7a3a4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn main() {

Before, the above code would have printed `RuntimeError('ValueError: original error message')`, which might be confusing.

After, the same code will print `ValueError: Rust Value Error`, which is more straightforward.
After, the same code will print `ValueError: original error message`, which is more straightforward.

However, if the `anyhow::Error` or `eyre::Report` has a source, then the original exception will still be wrapped in a `PyRuntimeError`.

Expand Down

0 comments on commit 7a3a4b0

Please sign in to comment.