Improving error reporting message.

This commit is contained in:
Stefano Sanfilippo 2014-11-28 19:31:46 +01:00
parent e93fef76f1
commit 1cd565a1f0

View File

@ -380,7 +380,7 @@ simple_expression:
#include "Scanner.hpp"
void Parser::error(const location_type& loc, const std::string &message) {
std::cerr << "Error at " << loc.begin.line << ":" << loc.begin.column;
std::cerr << "At " << loc.begin.line << "," << loc.begin.column;
std::cerr << ": " << message << std::endl;
}