mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
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
This commit is contained in:
parent
a7da90071e
commit
2117489e05
@ -639,6 +639,7 @@ fn printLineInfo(
|
||||
} else |err| switch (err) {
|
||||
error.EndOfFile, error.FileNotFound => {},
|
||||
error.BadPathName => {},
|
||||
error.AccessDenied => {},
|
||||
else => return err,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user