forked from lix-project/lix
Catch flake-related exception type in REPL
Closes https://github.com/NixOS/nix/issues/5656
This commit is contained in:
parent
5fcf7f04a9
commit
6d166d19a6
|
@ -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