Catch flake-related exception type in REPL
Closes https://github.com/NixOS/nix/issues/5656
This commit is contained in:
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user