diff --git a/vmm/sandbox/src/sandbox.rs b/vmm/sandbox/src/sandbox.rs index 42875a8e..dd724c9a 100644 --- a/vmm/sandbox/src/sandbox.rs +++ b/vmm/sandbox/src/sandbox.rs @@ -90,8 +90,13 @@ where let mut subs = match tokio::fs::read_dir(dir).await { Ok(subs) => subs, Err(e) => { - error!("FATAL! read working dir {} for recovery: {}", dir, e); - return; + if e.kind() == ErrorKind::NotFound { + warn!("WARN! read working dir {} for recovery: {}", dir, e); + return; + } else { + error!("FATAL! read working dir {} for recovery: {}", dir, e); + return; + } } }; while let Some(entry) = subs.next_entry().await.unwrap() {