diff --git a/src/agent/onefuzz-supervisor/src/main.rs b/src/agent/onefuzz-supervisor/src/main.rs index 539e6fce2d..e82d709bbc 100644 --- a/src/agent/onefuzz-supervisor/src/main.rs +++ b/src/agent/onefuzz-supervisor/src/main.rs @@ -83,14 +83,13 @@ fn run(opt: RunOpt) -> Result<()> { let mut rt = tokio::runtime::Runtime::new()?; let result = rt.block_on(run_agent(config)); - if let Err(err) = result { + if let Err(err) = &result { error!("error running supervisor agent: {}", err); - return Err(err); } onefuzz::telemetry::try_flush_and_close(); - Ok(()) + result } fn load_config(opt: RunOpt) -> Result {