Commit 687c0aa6 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Log an error if size parsed is < to the size of input

parent 9736aee8
......@@ -94,6 +94,9 @@ shared_ptr<BelCardGeneric> BelCardParser::_parse(const string &input, const stri
size_t parsedSize = 0;
shared_ptr<BelCardGeneric> ret = parser.parseInput(rule, input, &parsedSize);
if (parsedSize < input.size()){
cerr << "[belcard] Parsing ended prematuraly at pos " << parsedSize << endl;
}
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment