mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Catch flake-related exception type in REPL
Closes https://github.com/NixOS/nix/issues/5656
This commit is contained in:
parent
5fcf7f04a9
commit
6d166d19a6
1 changed files with 2 additions and 0 deletions
|
@ -356,6 +356,8 @@ StringSet NixRepl::completePrefix(string prefix)
|
|||
// Quietly ignore evaluation errors.
|
||||
} catch (UndefinedVarError & e) {
|
||||
// Quietly ignore undefined variable errors.
|
||||
} catch (BadURL & e) {
|
||||
// Quietly ignore BadURL flake-related errors.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue