Improving error reporting message.
This commit is contained in:
parent
e93fef76f1
commit
1cd565a1f0
|
@ -380,7 +380,7 @@ simple_expression:
|
||||||
#include "Scanner.hpp"
|
#include "Scanner.hpp"
|
||||||
|
|
||||||
void Parser::error(const location_type& loc, const std::string &message) {
|
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;
|
std::cerr << ": " << message << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user