[llvm] [Support] Better error msg when cache dir can't be created. (PR #69575)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 10:41:01 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: ") +
----------------
dwblaikie wrote:
Usually error messages are all lower case, I think?
https://github.com/llvm/llvm-project/pull/69575
More information about the llvm-commits
mailing list