Skip to content

Commit

Permalink
about panic stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Jul 31, 2024
1 parent 4a8efcb commit 94cc27e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ We have used the `err2` and `assert` packages in several projects. The results
have been so far very encouraging:
- If you forget to use handler, but you use checks from the package, you will
get panics (and optionally stack traces) if an error occurs. That is much better
than getting unrelated panic somewhere else in the code later. There have also
been cases when code reports error correctly because the 'upper' handler catches
it.
get panics on errors (and optimized stack traces that can be suppressed). That
is much better than getting unrelated panic somewhere else in the code later.
There have also been cases when code reports error correctly because the 'upper'
handler catches it.
- Because the use of `err2.Handle` is so easy, error messages are much better
and informative. When using `err2.Handle`'s automatic annotation your error
Expand Down

0 comments on commit 94cc27e

Please sign in to comment.