diff --git a/crates/horizon-server/src/supervisor.rs b/crates/horizon-server/src/supervisor.rs index e9535cd53..1cd36e83e 100644 --- a/crates/horizon-server/src/supervisor.rs +++ b/crates/horizon-server/src/supervisor.rs @@ -264,7 +264,13 @@ fn switch( to: &str, timeout: Duration, ) -> Option { - let install = shared.install.as_ref()?; + let Some(install) = shared.install.as_ref() else { + shared.finish_update( + false, + "Not updated: this horizon-server wasn't installed".into(), + ); + return None; + }; let Some(from) = install.current() else { shared.finish_update(false, "Not updated: `current` points at no release".into()); return None;