Fixec join CLI

This commit is contained in:
ab
2026-09-22 16:32:39 +03:00
parent 686c74a3bd
commit d1a0eca723
5 changed files with 151 additions and 26 deletions
+2 -8
View File
@@ -2256,14 +2256,8 @@ async fn status(args: StatusArgs) -> Result<(), Box<dyn std::error::Error>> {
// Nothing running is an ordinary answer to "what is running", not
// a fault; a socket that will not answer is a fault.
agent.push(if *socket_present {
// The version check in the framing names a mismatch only for
// whichever side is newer. An older agent reading a newer
// request just drops the connection, so the hint has to be
// offered rather than asserted.
Row::new(Health::Degraded, "running", "not answering").with_note(format!(
"{why} · it may be an older build: restart it with this binary. \
The rest was read from the store"
))
Row::new(Health::Degraded, "running", "not answering")
.with_note(format!("{why} · the rest was read from the store"))
} else {
Row::new(Health::Info, "running", "no")
.with_note(format!("{why} · the rest was read from the store"))