From 5f8d7ddd21d266ffae5e2fd9ce63561b223ea3d8 Mon Sep 17 00:00:00 2001 From: ethfanWilliam Date: Tue, 6 Jan 2026 13:54:32 +0400 Subject: [PATCH] chore: make error handling consistent (#20769) --- bin/reth-bench-compare/src/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reth-bench-compare/src/node.rs b/bin/reth-bench-compare/src/node.rs index b551a24721..a32230a810 100644 --- a/bin/reth-bench-compare/src/node.rs +++ b/bin/reth-bench-compare/src/node.rs @@ -408,7 +408,7 @@ impl NodeManager { /// Stop the reth node gracefully pub(crate) async fn stop_node(&self, child: &mut tokio::process::Child) -> Result<()> { - let pid = child.id().expect("Child process ID should be available"); + let pid = child.id().ok_or_eyre("Child process ID should be available")?; // Check if the process has already exited match child.try_wait() {