mirror of https://github.com/halo-dev/halo
fix: deleting a non-picture file throws an exception. (#1438)
* fix: deleting a non-picture file throws an exception. #1437 * doc: update CHANGELOG.mdpull/1440/head
parent
97941e37c1
commit
45ce44693d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue