# Revert "test_runner: workaround \#1923, isolating error traces in tests" · gitcafe/zig

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

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

Visibility: public

Requested revision: c955379504d4866f9c474c50317b2a0da18ee631

Requested commit: c955379504d4866f9c474c50317b2a0da18ee631

Commit: c955379504d4866f9c474c50317b2a0da18ee631

Tree: 4dd89f89f346d2a1f435efff54cd27d33485f2c5

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "test_runner: workaround #1923, isolating error traces in tests"

This reverts commit 1a32f2a7f40328799537cc94240a57054a1275bc.

Sorry, this workaround is not welcome. Instead, please solve the actual
issue by doing the accepted behavior in the compiler itself:

> in a catch or else (handling a returned error), if the block does not
> try or return error.xyz, set the index to 0

This also applies to if statements, such as the one that test runner is
doing just above this hack.

```

## Parents

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

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