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
2025-07-25 15:00:33 +00:00
committed by GitHub
parent 8ea92b728c
commit bcfaf1044e
3 changed files with 9 additions and 41 deletions
+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());
}