aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorVincent Rischmann <vincent@rischmann.fr>2021-01-10 15:39:59 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-10 17:46:15 -0800
commit2117489e05ddf7cc4653feecbf47b3637276d6b6 (patch)
tree09d16430484ded126a7ee56b3ff041929ac9f55c /lib/std
parenta7da90071e23f22158ef508a263cb3a4054554dd (diff)
downloadzig-2117489e05ddf7cc4653feecbf47b3637276d6b6.tar.gz
zig-2117489e05ddf7cc4653feecbf47b3637276d6b6.zip
debug: don't fail printLineInfo if the source file is not readable
Without this dumping a stacktrace fails with this: Unable to dump stack trace: AccessDenied
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/debug.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index b19f96892f..15d3baa1d0 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -639,6 +639,7 @@ fn printLineInfo(
} else |err| switch (err) {
error.EndOfFile, error.FileNotFound => {},
error.BadPathName => {},
+ error.AccessDenied => {},
else => return err,
}
}