Skip to content

Commit

Permalink
fix: deleting a non-picture file throws an exception. (#1438)
Browse files Browse the repository at this point in the history
* fix: deleting a non-picture file throws an exception.

#1437

* doc: update CHANGELOG.md
  • Loading branch information
ruibaby authored Jul 24, 2021
1 parent 97941e3 commit 45ce446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public void delete(String key) {
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);
Expand Down

0 comments on commit 45ce446

Please sign in to comment.