forked from lix-project/lix
if no errLoc, no Loc.
This commit is contained in:
parent
3629b0585a
commit
a295b2ea96
|
@ -94,7 +94,9 @@ std::optional<LinesOfCode> getCodeLines(const ErrPos &errPos)
|
|||
}
|
||||
}
|
||||
catch (EndOfFile &eof) {
|
||||
// TODO: return maybe partial loc?
|
||||
if (loc.errLineOfCode.has_value())
|
||||
return loc;
|
||||
else
|
||||
return std::nullopt;
|
||||
}
|
||||
catch (std::exception &e) {
|
||||
|
|
Loading…
Reference in a new issue