summaryrefslogtreecommitdiff
path: root/src/weepinbell
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-09-23 18:07:52 +0800
committereltrac <hi@eltr.ac>2026-09-23 18:07:52 +0800
commitdbf0ff643bee01b4327a4f835d2d3bb656d72bba (patch)
tree9a539c2292d73ef99833dcec452e61a3cfcbf059 /src/weepinbell
parent6552465ebbcca3fa861176eedf12cdf65be29d15 (diff)
http.downloader: fix corrupted/empty file not deleted after download failed
Diffstat (limited to 'src/weepinbell')
-rw-r--r--src/weepinbell/http/downloader.clj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/weepinbell/http/downloader.clj b/src/weepinbell/http/downloader.clj
index 0e817a6..d1a6df1 100644
--- a/src/weepinbell/http/downloader.clj
+++ b/src/weepinbell/http/downloader.clj
@@ -25,5 +25,6 @@
;; when download failed
(catch Exception e
(timbre/error "Download error:" (.getMessage e))
+ (io/delete-file (io/file dest-path))
false)))