Remove location support from error (#5837)

Location support was probably there for explorer, which is deleted.
Remove support as a simplification.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2025-07-25 15:00:33 +00:00
1 parent 8ea92b728c
commit bcfaf1044e
3 files changed
+9 -41

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ static auto ExtractFilePathFromUri(llvm::StringRef uri)
-> ErrorOr<llvm::StringRef> {
static constexpr llvm::StringRef FilePrefix = "file:/";
if (!uri.starts_with(FilePrefix)) {
return ErrorBuilder("uri `") << uri << "` is not a file uri";
return ErrorBuilder() << "uri `" << uri << "` is not a file uri";
}
return uri.drop_front(FilePrefix.size());
}