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:
Vincent Rischmann 2021-01-10 15:39:59 +01:00 committed by Andrew Kelley
parent a7da90071e
commit 2117489e05

View File

@ -639,6 +639,7 @@ fn printLineInfo(
} else |err| switch (err) {
error.EndOfFile, error.FileNotFound => {},
error.BadPathName => {},
error.AccessDenied => {},
else => return err,
}
}