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

This commit is contained in:
2019-01-16 22:07:00 +01:00
parent e3e3ea07db
commit d09c17d30d
+1 -1
View File
@@ -39,7 +39,7 @@ func (r *mutationResolver) AddComment(ctx context.Context, input input.CommentAd
}
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