zig/lib/std/fs
Nick Cernis 8a5818535b
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
2022-11-12 21:03:24 +02:00
..
file.zig Remove outdated comment 2022-09-28 13:00:00 +03:00
get_app_data_dir.zig std/fs: Support XDG_DATA_HOME 2022-01-24 17:33:38 +02:00
path.zig std.fs.path: add stem() 2022-10-24 18:06:40 +02:00
test.zig fs: Some NAME_MAX/MAX_NAME_BYTES improvements 2022-10-29 14:30:46 -07:00
wasi.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
watch.zig fs: Use OpenMode enum instead of read/write flags. 2022-01-29 15:52:08 +02:00