diff --git a/control_plane/src/compute.rs b/control_plane/src/compute.rs index 46f0ad8d4f..ee504bfaa6 100644 --- a/control_plane/src/compute.rs +++ b/control_plane/src/compute.rs @@ -403,7 +403,7 @@ impl PostgresNode { fn pg_ctl(&self, args: &[&str], auth_token: &Option) -> Result<()> { let pg_ctl_path = self.env.pg_bin_dir(self.pg_version)?.join("pg_ctl"); - let mut cmd = Command::new(pg_ctl_path); + let mut cmd = Command::new(&pg_ctl_path); cmd.args( [ &[ @@ -432,7 +432,9 @@ impl PostgresNode { cmd.env("NEON_AUTH_TOKEN", token); } - let pg_ctl = cmd.output().context("pg_ctl failed")?; + let pg_ctl = cmd + .output() + .context(format!("{} failed", pg_ctl_path.display()))?; if !pg_ctl.status.success() { anyhow::bail!( "pg_ctl failed, exit code: {}, stdout: {}, stderr: {}",