diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-15 12:28:21 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-15 12:28:21 -0400 |
| commit | 6bf193af192ffaf3465958a243ec8fc8941cfe4d (patch) | |
| tree | 7271c30c7c6657765535002421c65a2377171477 /std/os.zig | |
| parent | 60025a37045835c8bbf914eccdbeba6d6e2c275f (diff) | |
| download | zig-6bf193af192ffaf3465958a243ec8fc8941cfe4d.tar.gz zig-6bf193af192ffaf3465958a243ec8fc8941cfe4d.zip | |
better result location semantics with optionals and return locations
somewhere along this branch, #1901 has been fixed.
Diffstat (limited to 'std/os.zig')
| -rw-r--r-- | std/os.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os.zig b/std/os.zig index 3409dcf6c6..a0f8d1f12b 100644 --- a/std/os.zig +++ b/std/os.zig @@ -2487,7 +2487,7 @@ pub fn toPosixPath(file_path: []const u8) ![PATH_MAX]u8 { /// if this happens the fix is to add the error code to the corresponding /// switch expression, possibly introduce a new error in the error set, and /// send a patch to Zig. -pub const unexpected_error_tracing = false; +pub const unexpected_error_tracing = builtin.mode == .Debug; pub const UnexpectedError = error{ /// The Operating System returned an undocumented error code. |
