diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe/src/util/http/curl_downloader.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe/src/util/http/curl_downloader.rs b/crates/shirabe/src/util/http/curl_downloader.rs index c0b968bd..454836e7 100644 --- a/crates/shirabe/src/util/http/curl_downloader.rs +++ b/crates/shirabe/src/util/http/curl_downloader.rs @@ -403,7 +403,12 @@ impl CurlDownloader { }); } Ok(_) => {} - Err(e) => return Ok(Decision::Failed(e)), + Err(e) => { + if let Some(filename) = filename { + unlink_silent(&format!("{}~", filename)); + } + return Ok(Decision::Failed(e)); + } } } |
