From ca0de26c7506709858d17aa992df4b6b730e566e Mon Sep 17 00:00:00 2001 From: Reactor Scram Date: Mon, 13 May 2024 10:59:14 -0500 Subject: [PATCH] chore(ipc-service/linux): fix incorrect error message (#4976) closes #4952 Forgot to use `format!` here --- rust/headless-client/src/imp_linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/headless-client/src/imp_linux.rs b/rust/headless-client/src/imp_linux.rs index cfbe2846a..44e26ab01 100644 --- a/rust/headless-client/src/imp_linux.rs +++ b/rust/headless-client/src/imp_linux.rs @@ -196,7 +196,7 @@ pub(crate) fn run_ipc_service( pub fn firezone_group() -> Result { let group = nix::unistd::Group::from_name(FIREZONE_GROUP) .context("can't get group by name")? - .context("`{FIREZONE_GROUP}` group must exist on the system")?; + .with_context(|| format!("`{FIREZONE_GROUP}` group must exist on the system"))?; Ok(group) }