# stage2: Fix usage of getError\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 597ead5318421befba3619fed389820d241ecc78

Requested commit: 597ead5318421befba3619fed389820d241ecc78

Commit: 597ead5318421befba3619fed389820d241ecc78

Tree: 53be9aa62a94066cc011c6ec0bda9a90bf187623

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
stage2: Fix usage of getError()

Despite the old doc-comment, this function cannot be valid for all types
since it operates with only a value and Error (Union) types have
overlapping Value representations with other Types.

```

## Parents

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

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