We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e7f52 commit 20d058fCopy full SHA for 20d058f
libs/foundry-wrapper/src/error.rs
@@ -28,4 +28,7 @@ pub enum Error {
28
29
#[error("Cannot read build info file")]
30
ReadBuildInfo(#[from] std::io::Error),
31
+
32
+ #[error("filesystem error: {0}")]
33
+ FileSystemError(std::io::Error),
34
}
libs/foundry-wrapper/src/output.rs
@@ -9,7 +9,12 @@ use std::path::PathBuf;
9
pub fn remove_previous_outputs(base_path: &str) -> Result<(), Error> {
10
let build_info_path = format!("{}/out/build-info", base_path);
11
12
- remove_dir_all(&build_info_path)?;
+ let res = remove_dir_all(&build_info_path);
13
+ if let Err(e) = res {
14
+ if e.kind() != io::ErrorKind::NotFound {
15
+ return Err(Error::FileSystemError(e));
16
+ }
17
18
Ok(())
19
20
0 commit comments