diff options
| author | Vincent Rischmann <vincent@rischmann.fr> | 2021-01-10 15:39:59 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-10 17:46:15 -0800 |
| commit | 2117489e05ddf7cc4653feecbf47b3637276d6b6 (patch) | |
| tree | 09d16430484ded126a7ee56b3ff041929ac9f55c | |
| parent | a7da90071e23f22158ef508a263cb3a4054554dd (diff) | |
| download | zig-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
| -rw-r--r-- | lib/std/debug.zig | 1 |
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, } } |
