zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2117489e05ddf7cc4653feecbf47b3637276d6b6 (tree)
parent a7da90071e23f22158ef508a263cb3a4054554dd
Author: Vincent Rischmann <vincent@rischmann.fr>
Date:   Sun, 10 Jan 2021 15:39:59 +0100

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:
Mlib/std/debug.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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, } }