forked from lix-project/lix
don't crash if there's no drvPath
This commit is contained in:
parent
e4eae078a5
commit
31f1af0cab
|
@ -181,9 +181,15 @@ static int _main(int argc, char * * argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the template values.
|
// add the template values.
|
||||||
|
string drvstr;
|
||||||
|
if (drvPath.has_value())
|
||||||
|
drvstr = drvPath->to_string();
|
||||||
|
else
|
||||||
|
drvstr = "<unknown>";
|
||||||
|
|
||||||
auto hint = hintformat(hintstring);
|
auto hint = hintformat(hintstring);
|
||||||
hint
|
hint
|
||||||
% drvPath->to_string()
|
% drvstr
|
||||||
% neededSystem
|
% neededSystem
|
||||||
% concatStringsSep<StringSet>(", ", requiredFeatures)
|
% concatStringsSep<StringSet>(", ", requiredFeatures)
|
||||||
% machines.size();
|
% machines.size();
|
||||||
|
|
Loading…
Reference in a new issue