Swallow the error in a more idiomatic way

This commit is contained in:
Théophane Hufschmitt 2022-11-16 10:34:32 +01:00 committed by GitHub
parent 16f1720fd2
commit 60dea270d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,9 +258,8 @@ void SourceExprCommand::completeInstallable(std::string_view prefix)
getDefaultFlakeAttrPaths(), getDefaultFlakeAttrPaths(),
prefix); prefix);
} }
} catch (EvalError& e) { } catch (EvalError&) {
// swallow eval error // Don't want eval errors to mess-up with the completion engine, so let's just swallow them
(void)e;
} }
} }