Merge "repl: do not crash when tab-completing import errors" into main

This commit is contained in:
Pierre Bourdon 2024-05-23 10:48:38 +00:00 committed by Gerrit Code Review
commit 79121e0c44

View file

@ -376,6 +376,9 @@ StringSet NixRepl::completePrefix(const std::string & prefix)
// Quietly ignore evaluation errors.
} catch (BadURL & e) {
// Quietly ignore BadURL flake-related errors.
} catch (SysError & e) {
// Quietly ignore system errors which can for example be raised by
// a non-existent file being `import`-ed.
}
}