[llvm] [Support] Better error msg when cache dir can't be created. (PR #69575)
Tobias Hieta via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 23:43:45 PDT 2023
================
@@ -145,7 +145,8 @@ 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: ") +
----------------
tru wrote:
That might be true for other parts, but this file has all error messages capitalized. I think I'll follow the current convention in the file for now and someone can happily do a NFC for fixing that later.
https://github.com/llvm/llvm-project/pull/69575
More information about the llvm-commits
mailing list