# Make invalidFmtError public and use in place of compileErrors for bad format strings \(\#13526\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 8a5818535b83ba87849cb09de9f1ccd32e8bb480

Requested commit: 8a5818535b83ba87849cb09de9f1ccd32e8bb480

Commit: 8a5818535b83ba87849cb09de9f1ccd32e8bb480

Tree: 8b63ffe15c08edbe921d17594c5d333219937670

Author: Nick Cernis

Committer: GitHub

## Message

```
Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526)

* Export invalidFmtErr

To allow consistent use of "invalid format string" compile error
response for badly formatted format strings.

See https://github.com/ziglang/zig/pull/13489#issuecomment-1311759340.

* Replace format compile errors with invalidFmtErr

- Provides more consistent compile errors.
- Gives user info about the type of the badly formated value.

* Rename invalidFmtErr as invalidFmtError

For consistency. Zig seems to use “Error” more often than “Err”.

* std: add invalid format string checks to remaining custom formatters

* pass reference-trace to comp when building build file; fix checkobjectstep
```

## Parents

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

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