authorgravatar for vincent@rischmann.frVincent Rischmann <vincent@rischmann.fr> 2021-01-10 15:39:59+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-10 17:46:15-08:00
log2117489e05ddf7cc4653feecbf47b3637276d6b6
tree09d16430484ded126a7ee56b3ff041929ac9f55c
parenta7da90071e23f22158ef508a263cb3a4054554dd

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

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/debug.zig+1
...@@ -639,6 +639,7 @@ fn printLineInfo(...@@ -639,6 +639,7 @@ fn printLineInfo(
639 } else |err| switch (err) {639 } else |err| switch (err) {
640 error.EndOfFile, error.FileNotFound => {},640 error.EndOfFile, error.FileNotFound => {},
641 error.BadPathName => {},641 error.BadPathName => {},
642 error.AccessDenied => {},
642 else => return err,643 else => return err,
643 }644 }
644 }645 }