# GenericReader error set fixes · gitcafe/zig

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

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

Visibility: public

Requested revision: 8f48533691e93538846993f78f732272a03a600b

Requested commit: 8f48533691e93538846993f78f732272a03a600b

Commit: 8f48533691e93538846993f78f732272a03a600b

Tree: 0d0d29c5019b4a64c3d3dd71c41fa3e2fc5dc6f3

Author: Travis Staloch

Committer: Andrew Kelley

## Message

```
GenericReader error set fixes

add error.EndOfStream to readEnum() and isBytes() so that users can
catch these errors.  this also prevents them from panicing with
'invalid error value' on EndOfStream.

test both methods.

```

## Parents

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

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