Browse Source

Avoid log error message on every delete action.

master
yangjianhua 7 years ago
parent
commit
2b57a65c59
  1. 4
      rest/matter_dao.go

4
rest/matter_dao.go

@ -228,7 +228,9 @@ func (this *MatterDao) Delete(matter *Matter) {
//删除文件 //删除文件
err := os.Remove(CONFIG.MatterPath + matter.Path) err := os.Remove(CONFIG.MatterPath + matter.Path)
LogError(fmt.Sprintf("删除磁盘上的文件出错,不做任何处理")) if err != nil {
LogError(fmt.Sprintf("删除磁盘上的文件出错,不做任何处理"))
}
this.PanicError(err) this.PanicError(err)

Loading…
Cancel
Save