# add helpful error note for when function cannot return an error · gitcafe/zig

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

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

Visibility: public

Requested revision: 5f0bde63582c800352b2d11e20bec650bd266a6f

Requested commit: 5f0bde63582c800352b2d11e20bec650bd266a6f

Commit: 5f0bde63582c800352b2d11e20bec650bd266a6f

Tree: 894151cb1a91158ed6b98989598dd992c8730c3f

Author: Vexu

Committer: Andrew Kelley

## Message

```
add helpful error note for when function cannot return an error

This has caused frequent confusion since it looks like you are handling
errors correctly with a try but you forgot to change your return type.

```

## Parents

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

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