mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #77934 from cachemeifyoucan/eng/PR-140822432
[Caching] Downgrade output loading error to a warning
This commit is contained in:
@@ -511,6 +511,7 @@ REMARK(output_cache_miss, none, "cache miss for input file '%0': key '%1'", (Str
|
||||
|
||||
// CAS related diagnostics
|
||||
ERROR(error_cas, none, "CAS error encountered: %0", (StringRef))
|
||||
WARNING(cache_replay_failed, none, "cache replay failed: %0", (StringRef))
|
||||
|
||||
ERROR(error_failed_cached_diag, none, "failed to serialize cached diagnostics: %0", (StringRef))
|
||||
ERROR(error_replay_cached_diag, none, "failed to replay cached diagnostics: %0", (StringRef))
|
||||
|
||||
@@ -226,7 +226,8 @@ bool replayCachedCompilerOutputs(
|
||||
OutputEntry{OutputPath->second, OutID, Kind, Input, *Proxy});
|
||||
return Error::success();
|
||||
})) {
|
||||
Diag.diagnose(SourceLoc(), diag::error_cas, toString(std::move(Err)));
|
||||
Diag.diagnose(SourceLoc(), diag::cache_replay_failed,
|
||||
toString(std::move(Err)));
|
||||
return lookupFailed();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user