mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
add some explanatory comments
This commit is contained in:
parent
9e7b89bf10
commit
5b3aefff85
3 changed files with 56 additions and 33 deletions
|
@ -152,12 +152,14 @@ void printErrorInfo(ErrorInfo &einfo)
|
|||
|
||||
// lines of code.
|
||||
if (einfo.nixCode.has_value())
|
||||
{
|
||||
printCodeLines(prefix, *einfo.nixCode);
|
||||
cout << prefix << endl;
|
||||
}
|
||||
|
||||
// hint
|
||||
if (einfo.hint.has_value())
|
||||
{
|
||||
cout << prefix << endl;
|
||||
cout << prefix << *einfo.hint << endl;
|
||||
cout << prefix << endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue