From 598d07239e8b4213688234342e8d11443aa744ba Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Wed, 25 Feb 2026 19:02:33 +0100 Subject: [PATCH] fix(core): include state in stop not-running error Stop now reports the current env state when it is not running, to make the error actionable. --- crates/karapace-core/src/engine.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/karapace-core/src/engine.rs b/crates/karapace-core/src/engine.rs index 4f6964f..27456c9 100644 --- a/crates/karapace-core/src/engine.rs +++ b/crates/karapace-core/src/engine.rs @@ -500,7 +500,10 @@ impl Engine { if meta.state != EnvState::Running { return Err(CoreError::Runtime( - karapace_runtime::RuntimeError::NotRunning(env_id.to_owned()), + karapace_runtime::RuntimeError::NotRunning(format!( + "{} (state: {})", + env_id, meta.state + )), )); }