aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-11-16 10:34:32 +0100
committerGitHub <noreply@github.com>2022-11-16 10:34:32 +0100
commit60dea270d0bc430930f5560ebac71a2dc0ab2b21 (patch)
tree024b08c812ecfe73c181dbb47cbe72e3a4a2f2e9 /src
parent16f1720fd2ac1c74043492e71a3e0a3327db4919 (diff)
Swallow the error in a more idiomatic way
Diffstat (limited to 'src')
-rw-r--r--src/libcmd/installables.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc
index e8836c247..f63b9eeae 100644
--- a/src/libcmd/installables.cc
+++ b/src/libcmd/installables.cc
@@ -258,9 +258,8 @@ void SourceExprCommand::completeInstallable(std::string_view prefix)
getDefaultFlakeAttrPaths(),
prefix);
}
- } catch (EvalError& e) {
- // swallow eval error
- (void)e;
+ } catch (EvalError&) {
+ // Don't want eval errors to mess-up with the completion engine, so let's just swallow them
}
}