From 8983efabe2d192dfd8ee3f2be32a88cbe47b9110 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sat, 9 Jun 2018 14:22:24 +0530 Subject: [PATCH] errors.go: remove irrelevant errors --- api/errors.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/errors.go b/api/errors.go index f53a54f..10fda74 100644 --- a/api/errors.go +++ b/api/errors.go @@ -22,20 +22,13 @@ var errorNoSuchCommenter = errors.New("No such commenter.") var errorAlreadyUpvoted = errors.New("You have already upvoted that comment.") var errorNoSuchDomain = errors.New("This domain is not registered with Commento.") var errorNoSuchComment = errors.New("No such comment.") -var errorNeedPro = errors.New("You need to have a pro/business account to do that.") var errorInvalidState = errors.New("Invalid state value.") -var errorInvalidTrial = errors.New("Invalid trial value.") var errorDomainFrozen = errors.New("Cannot add a new comment because that domain is frozen.") var errorDomainAlreadyExists = errors.New("That domain has already been registered. Please contact support if you are the true owner.") var errorUnauthorisedVote = errors.New("You need to be authenticated to vote.") var errorNoSuchEmail = errors.New("No such email.") var errorInvalidEmail = errors.New("You do not have an email registered with that account.") -var errorNoTrialChange = errors.New("You cannot change to a trial plan.") -var errorInvalidPlan = errors.New("Invalid plan value.") -var errorNoSource = errors.New("You have no payment source on record to change your plan.") -var errorCannotDowngrage = errors.New("Cannot downgrade plan features.") var errorForbiddenEdit = errors.New("You cannot edit someone else's comment.") -var errorNotInvited = errors.New("Commento is currently in private beta and invite-only for now.") var errorMissingSmtpAddress = errors.New("Missing SMTP_FROM_ADDRESS") var errorSmtpNotConfigured = errors.New("SMTP is not configured.") var errorOauthMisconfigured = errors.New("OAuth is misconfigured.")