mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
Update src/nix/search.cc
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
1ad71bc62c
commit
14a3a62bfc
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ struct CmdSearch : InstallableCommand, MixJSON
|
||||||
for (auto & [cursor, prefix] : installable->getCursor(*state, true))
|
for (auto & [cursor, prefix] : installable->getCursor(*state, true))
|
||||||
visit(*cursor, parseAttrPath(*state, prefix));
|
visit(*cursor, parseAttrPath(*state, prefix));
|
||||||
|
|
||||||
if (!results)
|
if (!json && !results)
|
||||||
throw Error("no results for the given search term(s)!");
|
throw Error("no results for the given search term(s)!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue