mirror of
https://github.com/NixOS/nix.git
synced 2025-11-23 02:39:37 +01:00
Merge pull request #5664 from tweag/catch-exception-in-repl
Catch flake-related exception type in REPL
This commit is contained in:
commit
c18238d92a
1 changed files with 2 additions and 0 deletions
|
|
@ -356,6 +356,8 @@ StringSet NixRepl::completePrefix(string prefix)
|
||||||
// Quietly ignore evaluation errors.
|
// Quietly ignore evaluation errors.
|
||||||
} catch (UndefinedVarError & e) {
|
} catch (UndefinedVarError & e) {
|
||||||
// Quietly ignore undefined variable errors.
|
// Quietly ignore undefined variable errors.
|
||||||
|
} catch (BadURL & e) {
|
||||||
|
// Quietly ignore BadURL flake-related errors.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue