| ... | ... | @@ -315,8 +315,9 @@ pub const Manifest = struct { |
| 315 | 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 { |
| 319 | | return error.CacheUnavailable; |
| 318 | const this_file = fs.cwd().openFile(cache_hash_file.path.?, .{ .read = true }) catch |err| switch (err) { |
| 319 | error.FileNotFound => return false, |
| 320 | else => return error.CacheUnavailable, |
| 320 | 321 | }; |
| 321 | 322 | defer this_file.close(); |
| 322 | 323 | |