Skip to content

Commit

Permalink
Merge pull request #162 from ArekPiekarz/readme-backtrace
Browse files Browse the repository at this point in the history
Add to README using backtraces on stable channel
  • Loading branch information
dtolnay committed Sep 5, 2021
2 parents b45d649 + 58b873a commit 4d3adef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -75,10 +75,11 @@ anyhow = "1.0"
}
```

- If using the nightly channel, a backtrace is captured and printed with the
error if the underlying error type does not already provide its own. In order
to see backtraces, they must be enabled through the environment variables
described in [`std::backtrace`]:
- If using the stable channel with enabled "backtrace" feature or the nightly
channel, a backtrace is captured and printed with the error if the underlying
error type does not already provide its own. In order to see backtraces, they
must be enabled through the environment variables described in
[`std::backtrace`]:

- If you want panics and errors to both have backtraces, set
`RUST_BACKTRACE=1`;
Expand Down

0 comments on commit 4d3adef

Please sign in to comment.