Fix some copy warning.

This commit is contained in:
zicla
2020-03-12 00:56:54 +08:00
parent fc2df7e501
commit bea9a0a56d
4 changed files with 28 additions and 3 deletions

View File

@ -528,7 +528,8 @@ func (this *MatterService) handleOverwrite(request *http.Request, user *User, de
//delete.
this.Delete(request, destMatter, user)
} else {
panic(result.BadRequestI18n(request, i18n.MatterExist, destMatter.Path))
//throw precondition failed. (RFC4918:10.6)
panic(result.CustomWebResult(result.PRECONDITION_FAILED, fmt.Sprintf("%s exists", destMatter.Path)))
}
}