errors.go: remove irrelevant errors

This commit is contained in:
Adhityaa 2018-06-09 14:22:24 +05:30
parent 2e64c95b7c
commit 8983efabe2

View File

@ -22,20 +22,13 @@ var errorNoSuchCommenter = errors.New("No such commenter.")
var errorAlreadyUpvoted = errors.New("You have already upvoted that comment.") var errorAlreadyUpvoted = errors.New("You have already upvoted that comment.")
var errorNoSuchDomain = errors.New("This domain is not registered with Commento.") var errorNoSuchDomain = errors.New("This domain is not registered with Commento.")
var errorNoSuchComment = errors.New("No such comment.") 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 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 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 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 errorUnauthorisedVote = errors.New("You need to be authenticated to vote.")
var errorNoSuchEmail = errors.New("No such email.") var errorNoSuchEmail = errors.New("No such email.")
var errorInvalidEmail = errors.New("You do not have an email registered with that account.") 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 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 errorMissingSmtpAddress = errors.New("Missing SMTP_FROM_ADDRESS")
var errorSmtpNotConfigured = errors.New("SMTP is not configured.") var errorSmtpNotConfigured = errors.New("SMTP is not configured.")
var errorOauthMisconfigured = errors.New("OAuth is misconfigured.") var errorOauthMisconfigured = errors.New("OAuth is misconfigured.")