code refactor for i18n when occur duplicate tagkey

This commit is contained in:
Ulric Qin 2021-12-11 17:25:45 +08:00
parent 61f76afa0d
commit d4c4257517
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ func targetBindTags(c *gin.Context) {
tagkey := strings.Split(f.Tags[j], "=")[0]
tagkeyPrefix := tagkey + "="
if strings.HasPrefix(target.Tags, tagkeyPrefix) {
ginx.Bomb(200, "duplicate tagkey(%s)", tagkey)
ginx.NewRender(c).Message("duplicate tagkey(%s)", tagkey)
return
}
}