diff options
author | dramforever <dramforever@live.com> | 2023-01-23 23:06:57 +0800 |
---|---|---|
committer | dramforever <dramforever@live.com> | 2023-01-30 23:59:09 +0800 |
commit | b26562c629604b76c58b789ee520581cc5549433 (patch) | |
tree | 4a16aa5cd2efae7afc5b6746831a3b51bd80ffa0 /src/libstore/daemon.cc | |
parent | 90e630a542c163e4d0fa2fb28bc6e1782e4bd394 (diff) |
InstallableFlake: Handle missing attr in getCursors
Handle the case where none of getActualAttrPaths() actually exists,
in which case instead of returning an empty vector.
This fixes the case where the user misspells the attribute name in nix
search. Instead of getting no search results, now it shows an error with
suggestions.
Also remove InstallableFlake::getCursor() override since it's now
equivalent to the base class version.
Diffstat (limited to 'src/libstore/daemon.cc')
0 files changed, 0 insertions, 0 deletions