# Two more examples of possible syntax when dealing with errors \(\#15042\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 38ee46dda31101f349ea9eee762908f924fd384c

Requested commit: 38ee46dda31101f349ea9eee762908f924fd384c

Commit: 38ee46dda31101f349ea9eee762908f924fd384c

Tree: 67ccf0a4e8cfa4fe324cae3d5d3984adbb4cec0a

Author: Phil Eaton

Committer: GitHub

## Message

```
Two more examples of possible syntax when dealing with errors (#15042)

Add an example of if with try without else switch; add example of catch with block returning value
```

## Parents

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

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