Commit 2117489e05

Vincent Rischmann <vincent@rischmann.fr>
2021-01-10 15:39:59
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 parent a7da900
Changed files (1)
lib
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,
             }
         }