mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
parser: Reporting the right column position in case of error
This commit is contained in:
parent
37c18326c6
commit
7317079945
@ -172,7 +172,7 @@ void Driver::error(const yy::location& l, const std::string& m,
|
||||
parserError << "File: " << ref.back() << ". ";
|
||||
}
|
||||
parserError << "Line: " << l.end.line << ". ";
|
||||
parserError << "Column: " << l.end.column << ". ";
|
||||
parserError << "Column: " << l.end.column - 1 << ". ";
|
||||
}
|
||||
|
||||
if (m.empty() == false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user