improve diagnostics in call parsing, patch suggested by
[oota-llvm.git] / docs / tutorial / LangImpl2.html
index 50619e095502382959262f5dce1ecb24ae8b2174..018d0be76032fcac56a4e1cfd7a84d0d13f6faa2 100644 (file)
@@ -337,7 +337,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }
@@ -1007,7 +1007,7 @@ static ExprAST *ParseIdentifierExpr() {
       if (CurTok == ')') break;
     
       if (CurTok != ',')
-        return Error("Expected ')'");
+        return Error("Expected ')' or ',' in argument list");
       getNextToken();
     }
   }