From 2117489e05ddf7cc4653feecbf47b3637276d6b6 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 10 Jan 2021 15:39:59 +0100 Subject: 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 --- lib/std/debug.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/std/debug.zig') 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, } } -- cgit v1.2.3