aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-10-18 02:30:37 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-10-29 06:20:50 -0700
commit2d7d98da0cd54e9dc12c5d4f97cdf2e7dac36446 (patch)
tree3574da909b04785c6ac47592dde4402f178f4cce /lib/std/Thread.zig
parent97b9cc0adfee5b21079fccfde535b43391ac6233 (diff)
downloadzig-2d7d98da0cd54e9dc12c5d4f97cdf2e7dac36446.tar.gz
zig-2d7d98da0cd54e9dc12c5d4f97cdf2e7dac36446.zip
std.fs: use BadPathName rather than InvalidWtf8 on Windows
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index 9a602fbd6b..b5f950a08a 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -171,6 +171,7 @@ pub const SetNameError = error{
NameTooLong,
Unsupported,
Unexpected,
+ InvalidWtf8,
} || posix.PrctlError || posix.WriteError || std.fs.File.OpenError || std.fmt.BufPrintError;
pub fn setName(self: Thread, name: []const u8) SetNameError!void {