| ... | ... | @@ -3960,7 +3960,10 @@ pub fn cmdFmt(gpa: Allocator, arena: Allocator, args: []const []const u8) !void |
| 3960 | 3960 | // Mark any excluded files/directories as already seen, |
| 3961 | 3961 | // so that they are skipped later during actual processing |
| 3962 | 3962 | for (excluded_files.items) |file_path| { |
| 3963 | | var dir = try fs.cwd().openDir(file_path, .{}); |
| 3963 | var dir = fs.cwd().openDir(file_path, .{}) catch |err| switch (err) { |
| 3964 | error.FileNotFound => continue, |
| 3965 | else => |e| return e, |
| 3966 | }; |
| 3964 | 3967 | defer dir.close(); |
| 3965 | 3968 | |
| 3966 | 3969 | const stat = try dir.stat(); |