Skip to content

Commit a4cb2d5

Browse files
Fix error message for CAS ingestion
The code is checking if the DataPath is valid, but the error message is printing the CASPath. (cherry picked from commit ef74121)
1 parent 5742c05 commit a4cb2d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-cas/llvm-cas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Error checkCASIngestPath(StringRef CASPath, StringRef DataPath) {
535535
if (std::error_code EC = sys::fs::real_path(StringRef(CASPath), RealCAS))
536536
return createFileError(CASPath, EC);
537537
if (std::error_code EC = sys::fs::real_path(StringRef(DataPath), RealData))
538-
return createFileError(CASPath, EC);
538+
return createFileError(DataPath, EC);
539539
if (RealCAS.startswith(RealData) &&
540540
(RealCAS.size() == RealData.size() ||
541541
sys::path::is_separator(RealCAS[RealData.size()])))

0 commit comments

Comments
 (0)