From 0a75feba7c894d2ee6061b981fded4eb7ecdce2c Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 1 Jan 2026 20:58:47 -0800 Subject: [PATCH] Fix RunDeployError user-facing error message The error macro used to display a human-readable string associated with a RunDeployError had what looks like a copy-paste error - it was using `{0}` twice to substitute in the string representation of the first argument of the error type; so it as printing that string twice redundantly and not printing the second argument at all. --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 020b11f5..90325b85 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -386,9 +386,9 @@ fn prompt_deployment( pub enum RunDeployError { #[error("Failed to deploy profile to node {0}: {1}")] DeployProfile(String, deploy::deploy::DeployProfileError), - #[error("Failed to build profile on node {0}: {0}")] + #[error("Failed to build profile on node {0}: {1}")] BuildProfile(String, deploy::push::PushProfileError), - #[error("Failed to push profile to node {0}: {0}")] + #[error("Failed to push profile to node {0}: {1}")] PushProfile(String, deploy::push::PushProfileError), #[error("No profile named `{0}` was found")] ProfileNotFound(String),