Avoid log error message on every delete action.

This commit is contained in:
yangjianhua 2018-07-25 18:56:35 +08:00
parent 43a36b3701
commit 2b57a65c59

View File

@ -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)