mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
add has_value check; remove obslete friend class
This commit is contained in:
parent
833501f6f1
commit
d9632765a8
3 changed files with 8 additions and 8 deletions
|
@ -162,7 +162,7 @@ std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo)
|
|||
out << prefix << std::endl;
|
||||
|
||||
// lines of code.
|
||||
if (einfo.nixCode->errLineOfCode != "") {
|
||||
if (einfo.nixCode.has_value() && einfo.nixCode->errLineOfCode != "") {
|
||||
printCodeLines(prefix, *einfo.nixCode);
|
||||
out << prefix << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue