Catch flake-related exception type in REPL

Closes https://github.com/NixOS/nix/issues/5656
This commit is contained in:
Alex Shabalin 2021-11-26 11:03:48 +01:00
parent 5fcf7f04a9
commit 6d166d19a6

View file

@ -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.
}
}