mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 07:17:56 -05:00
chore: make error handling consistent (#20769)
This commit is contained in:
@@ -408,7 +408,7 @@ impl NodeManager {
|
|||||||
|
|
||||||
/// Stop the reth node gracefully
|
/// Stop the reth node gracefully
|
||||||
pub(crate) async fn stop_node(&self, child: &mut tokio::process::Child) -> Result<()> {
|
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
|
// Check if the process has already exited
|
||||||
match child.try_wait() {
|
match child.try_wait() {
|
||||||
|
|||||||
Reference in New Issue
Block a user