[lld] [Support] Better error msg when cache dir can't be created. (PR #69575)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 13:03:02 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 ") +
----------------
MaskRay wrote:
https://llvm.org/docs/CodingStandards.html#error-and-warning-messages The majority of places prefer no capitalization.
https://github.com/llvm/llvm-project/pull/69575
More information about the llvm-commits
mailing list