# translate-c: improve error messages when expecting specific tokens · gitcafe/zig

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

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

Visibility: public

Requested revision: d46973ee4fc2a2eff5b5e0ef78368419546ee6f9

Requested commit: d46973ee4fc2a2eff5b5e0ef78368419546ee6f9

Commit: d46973ee4fc2a2eff5b5e0ef78368419546ee6f9

Tree: 86a3354a3fb9dbeae945cea375972dcc9b1f3c85

Author: fn ⌃ ⌥

Committer: Veikka Tuominen

## Message

```
translate-c: improve error messages when expecting specific tokens

Old:
  unable to translate C expr: expected ')'
New:
  unable to translate C expr: expected ')' instead got '...'

```

## Parents

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

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