mirror of https://gitee.com/answerdev/answer.git
fix
This commit is contained in:
parent
0df1ab82fa
commit
e27121f871
|
@ -233,8 +233,13 @@ func (qs *QuestionService) UpdateQuestion(ctx context.Context, req *schema.Quest
|
|||
return
|
||||
}
|
||||
if !recommendExist {
|
||||
err = errors.BadRequest(reason.RecommendTagEnter).WithError(err).WithStack()
|
||||
return
|
||||
errorlist := make([]*validator.FormErrorField, 0)
|
||||
errorlist = append(errorlist, &validator.FormErrorField{
|
||||
ErrorField: "tags",
|
||||
ErrorMsg: reason.RecommendTagEnter,
|
||||
})
|
||||
err = errors.BadRequest(reason.RecommendTagEnter)
|
||||
return errorlist, err
|
||||
}
|
||||
|
||||
//CheckChangeTag
|
||||
|
|
Loading…
Reference in New Issue