mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Fix typo in sourcekitd-test error handler response
Currently if you type in a malformed `pos` argument it responds with:
wrong pos format, it should be '<line>:<column'
After the change it responds with:
wrong pos format, it should be '<line>:<column>'
This commit is contained in:
@@ -24,15 +24,15 @@ swift::ide::parseLineCol(StringRef LineCol) {
|
||||
unsigned Line, Col;
|
||||
size_t ColonIdx = LineCol.find(':');
|
||||
if (ColonIdx == StringRef::npos) {
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
|
||||
return None;
|
||||
}
|
||||
if (LineCol.substr(0, ColonIdx).getAsInteger(10, Line)) {
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
|
||||
return None;
|
||||
}
|
||||
if (LineCol.substr(ColonIdx+1).getAsInteger(10, Col)) {
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column'\n";
|
||||
llvm::errs() << "wrong pos format, it should be '<line>:<column>'\n";
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user