1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

no hard error when datadir cant be deleted

its probably gone already
This commit is contained in:
Robin Appelman 2021-04-09 20:12:20 +02:00
commit 68d44b0039

View file

@ -261,9 +261,12 @@ impl Cloud {
.remove_network(&self.network)
.await
.wrap_err("Failed to remove network")?;
remove_dir_all(self.workdir)
if let Err(e) = remove_dir_all(self.workdir)
.await
.wrap_err("Failed to remove work directory")?;
.wrap_err("Failed to remove work directory")
{
eprintln!("{}", e);
}
Ok(())
}