未验证 提交 45ce4469 编写于 作者: RYAN0UP's avatar RYAN0UP 提交者: GitHub

fix: deleting a non-picture file throws an exception. (#1438)

* fix: deleting a non-picture file throws an exception.

#1437

* doc: update CHANGELOG.md
上级 97941e37
......@@ -4,7 +4,8 @@
## Bug Fixes
- 修复 Content Api 中文章列表接口的 `keyword``categoryId` 参数为必传的问题。
- 修复 Content Api 中文章列表接口的 `keyword``categoryId` 参数为必传的问题。halo-dev/halo#1436
- 修复删除非图片附件时提示附件缩略图删除失败的问题。halo-dev/halo#1438
# 1.4.10
......
......@@ -194,7 +194,6 @@ public class LocalFileHandler implements FileHandler {
boolean deleteResult = Files.deleteIfExists(thumbnailPath);
if (!deleteResult) {
log.warn("Thumbnail: [{}] may not exist", thumbnailPath.toString());
throw new FileOperationException("附件缩略图 " + thumbnailName + " 删除失败");
}
} catch (IOException e) {
throw new FileOperationException("附件缩略图 " + thumbnailName + " 删除失败", e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册