# improvements to stack traces · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/60b2031831320186f3920d63cfa35bda40930450)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 60b2031831320186f3920d63cfa35bda40930450

Requested commit: 60b2031831320186f3920d63cfa35bda40930450

Commit: 60b2031831320186f3920d63cfa35bda40930450

Tree: 1c09db35eab1d6bac66db99f02a891811da230c3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
improvements to stack traces

 * @panic generates an error return trace
 * printing an error return trace no longer interferes with
   normal stack traces.
 * instead of ignore_frame_count, we look at the return address
   when you call panic, and that's the first stack trace function
   makes stack traces much cleaner - the error return trace
   flows gracefully into the stack trace

```

## Parents

- [20011a7a1c1f08644cd82a3c3e1d57cba9980695](https://git.cafe/gitcafe/zig/commit/20011a7a1c1f08644cd82a3c3e1d57cba9980695?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/60b2031831320186f3920d63cfa35bda40930450?format=markdown)
