diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/Caching.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Support/Caching.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/Caching.cpp b/contrib/llvm-project/llvm/lib/Support/Caching.cpp index f20f08a865c7..628e23e1cb3d 100644 --- a/contrib/llvm-project/llvm/lib/Support/Caching.cpp +++ b/contrib/llvm-project/llvm/lib/Support/Caching.cpp @@ -145,7 +145,9 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef, // ensures the filesystem isn't mutated until the cache is. if (std::error_code EC = sys::fs::create_directories( CacheDirectoryPath, /*IgnoreExisting=*/true)) - return errorCodeToError(EC); + return createStringError(EC, Twine("can't create cache directory ") + + CacheDirectoryPath + ": " + + EC.message()); // Write to a temporary to avoid race condition SmallString<64> TempFilenameModel; |