From d09c17d30db49a9575a5d92ca0d34d1f47fda333 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 16 Jan 2019 22:07:00 +0100 Subject: [PATCH] graph2: Changed addComment error message on can-comment check to be consistent with others. --- graph2/queries/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph2/queries/comment.go b/graph2/queries/comment.go index 5f314c7..c37d948 100644 --- a/graph2/queries/comment.go +++ b/graph2/queries/comment.go @@ -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