chore: make error handling consistent (#20769)

This commit is contained in:
ethfanWilliam
2026-01-06 13:54:32 +04:00
committed by GitHub
parent 44452359b9
commit 5f8d7ddd21

View File

@@ -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() {