Merge pull request #5664 from tweag/catch-exception-in-repl

Catch flake-related exception type in REPL
This commit is contained in:
Eelco Dolstra 2021-11-26 12:46:59 +01:00 committed by GitHub
commit c18238d92a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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