[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:
Ryan Lovelett
2016-07-29 11:50:00 -04:00
parent f41e626ff0
commit 1384a394ed
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
}