aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Shabalin <alex.shabalin@tweag.io>2021-11-26 11:03:48 +0100
committerAlex Shabalin <alex.shabalin@tweag.io>2021-11-26 11:03:48 +0100
commit6d166d19a6c1ffc8e651b7045ca1a8a7fff42e57 (patch)
tree245d05d48b5d52c368d14846bff70d858c50309e /src
parent5fcf7f04a91c5cd0d49f833fe21991da89776a22 (diff)
Catch flake-related exception type in REPL
Closes https://github.com/NixOS/nix/issues/5656
Diffstat (limited to 'src')
-rw-r--r--src/nix/repl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 41283c5f2..22a57de60 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -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.
}
}