Browse Source

graph2: Changed addComment error message on can-comment check to be consistent with others.

module-madness-pointers
Gisle Aune 6 years ago
parent
commit
d09c17d30d
  1. 2
      graph2/queries/comment.go

2
graph2/queries/comment.go

@ -39,7 +39,7 @@ func (r *mutationResolver) AddComment(ctx context.Context, input input.CommentAd
} }
if !chapter.CanComment() { if !chapter.CanComment() {
return models.Comment{}, errors.New("You cannot comment on this chapter")
return models.Comment{}, errors.New("Comments are disabled or locked")
} }
var characterPtr *models.Character var characterPtr *models.Character

Loading…
Cancel
Save