mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 01:41:11 +00:00
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:
1 parent
8ea92b728c
commit
bcfaf1044e
3 files changed
+9
-41
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user