mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
no error on clean when workdir doesnt exist in the first place
This commit is contained in:
parent
cd595d0deb
commit
8a43282fc9
1 changed files with 7 additions and 5 deletions
12
src/cloud.rs
12
src/cloud.rs
|
|
@ -375,11 +375,13 @@ impl Cloud {
|
|||
.remove_network(&self.network)
|
||||
.await
|
||||
.wrap_err("Failed to remove network")?;
|
||||
if let Err(e) = remove_dir_all(self.workdir)
|
||||
.await
|
||||
.wrap_err("Failed to remove work directory")
|
||||
{
|
||||
eprintln!("{}", e);
|
||||
if self.workdir.exists() {
|
||||
if let Err(e) = remove_dir_all(self.workdir)
|
||||
.await
|
||||
.wrap_err("Failed to remove work directory")
|
||||
{
|
||||
eprintln!("{}", e);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue