aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli/cmd.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-08 11:24:23 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-08 11:24:23 +0100
commit7f2541101f15614c79020b35d3d7dab767c32676 (patch)
treede4cd319331a0f427ddebb5b0544a3861e8f315c /src/garage/cli/cmd.rs
parent91b874c4efa40e64663368369a712e0a5a389e53 (diff)
downloadgarage-7f2541101f15614c79020b35d3d7dab767c32676.tar.gz
garage-7f2541101f15614c79020b35d3d7dab767c32676.zip
cli: improvements to the layout commands when multiple layouts are live
Diffstat (limited to 'src/garage/cli/cmd.rs')
-rw-r--r--src/garage/cli/cmd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/cli/cmd.rs b/src/garage/cli/cmd.rs
index 196c0cb3..fb6dface 100644
--- a/src/garage/cli/cmd.rs
+++ b/src/garage/cli/cmd.rs
@@ -179,7 +179,7 @@ pub async fn cmd_status(rpc_cli: &Endpoint<SystemRpc, ()>, rpc_host: NodeID) ->
println!("Your cluster is expecting to drain data from nodes that are currently unavailable.");
println!("If these nodes are definitely dead, please review the layout history with");
println!(
- "`garage layout history` and use `garage layout assume-sync` to force progress."
+ "`garage layout history` and use `garage layout skip-dead-nodes` to force progress."
);
}
}
@@ -274,6 +274,6 @@ pub async fn fetch_status(
.await??
{
SystemRpc::ReturnKnownNodes(nodes) => Ok(nodes),
- resp => Err(Error::Message(format!("Invalid RPC response: {:?}", resp))),
+ resp => Err(Error::unexpected_rpc_message(resp)),
}
}