Avoid log error message on every delete action.
This commit is contained in:
parent
43a36b3701
commit
2b57a65c59
@ -228,7 +228,9 @@ func (this *MatterDao) Delete(matter *Matter) {
|
|||||||
//删除文件
|
//删除文件
|
||||||
err := os.Remove(CONFIG.MatterPath + matter.Path)
|
err := os.Remove(CONFIG.MatterPath + matter.Path)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
LogError(fmt.Sprintf("删除磁盘上的文件出错,不做任何处理"))
|
LogError(fmt.Sprintf("删除磁盘上的文件出错,不做任何处理"))
|
||||||
|
}
|
||||||
|
|
||||||
this.PanicError(err)
|
this.PanicError(err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user