| ... | @@ -315,8 +315,9 @@ pub const Manifest = struct { | ... | @@ -315,8 +315,9 @@ pub const Manifest = struct { |
| 315 | cache_hash_file.path = try self.cache.gpa.dupe(u8, file_path); | 315 | cache_hash_file.path = try self.cache.gpa.dupe(u8, file_path); |
| 316 | } | 316 | } |
| 317 | | 317 | |
| 318 | const this_file = fs.cwd().openFile(cache_hash_file.path.?, .{ .read = true }) catch { | 318 | const this_file = fs.cwd().openFile(cache_hash_file.path.?, .{ .read = true }) catch |err| switch (err) { |
| 319 | return error.CacheUnavailable; | 319 | error.FileNotFound => return false, |
| | 320 | else => return error.CacheUnavailable, |
| 320 | }; | 321 | }; |
| 321 | defer this_file.close(); | 322 | defer this_file.close(); |
| 322 | | 323 | |