2018-05-27 22:40:42 +08:00
package main
import (
"errors"
)
var errorMalformedTemplate = errors . New ( "A template is malformed." )
var errorMissingConfig = errors . New ( "Missing config environment variable." )
var errorCannotSendEmail = errors . New ( "Email dispatch failed. Please contact support to resolve this issue." )
var errorInternal = errors . New ( "An internal error has occurred. If you see this repeatedly, please contact support." )
var errorInvalidJSONBody = errors . New ( "Invalid JSON request. If you think this shouldn't happen, please contact support." )
var errorMissingField = errors . New ( "One or more field(s) empty." )
var errorEmailExists = errors . New ( "That email address is already registered. Sign in instead?" )
var errorInvalidEmailPassword = errors . New ( "Invalid email/password combination." )
var errorUnconfirmedEmail = errors . New ( "Your email address is still unconfirmed. Please confirm your email address before proceeding." )
var errorNoSuchConfirmationToken = errors . New ( "This email confirmation link has expired." )
var errorNoSuchResetToken = errors . New ( "This password reset link has expired." )
var errorNotAuthorised = errors . New ( "You're not authorised to access that." )
var errorEmailAlreadyExists = errors . New ( "That email address has already been registered." )
2018-06-20 11:29:55 +08:00
var errorNoSuchToken = errors . New ( "No such session token." )
2018-06-07 00:51:31 +08:00
var errorNoSuchCommenter = errors . New ( "No such commenter." )
2018-05-27 22:40:42 +08:00
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 errorInvalidState = errors . New ( "Invalid state 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 errorForbiddenEdit = errors . New ( "You cannot edit someone else's comment." )
var errorMissingSmtpAddress = errors . New ( "Missing SMTP_FROM_ADDRESS" )
var errorSmtpNotConfigured = errors . New ( "SMTP is not configured." )
var errorOauthMisconfigured = errors . New ( "OAuth is misconfigured." )
var errorCannotReadResponse = errors . New ( "Cannot read response." )
var errorNotModerator = errors . New ( "You need to be a moderator to do that." )
2018-06-09 16:27:47 +08:00
var errorNotADirectory = errors . New ( "The given path is not a directory." )
2018-06-11 17:31:58 +08:00
var errorGzip = errors . New ( "Cannot GZip content." )
2018-06-14 16:58:11 +08:00
var errorCannotDownloadDisqus = errors . New ( "We could not download your Disqus export file." )
2020-02-01 15:12:21 +08:00
var errorCannotDownloadCommento = errors . New ( "We could not download your Commento export file." )
2018-06-14 17:10:19 +08:00
var errorSelfVote = errors . New ( "You cannot vote on your own comment." )
2018-06-21 23:33:32 +08:00
var errorInvalidConfigFile = errors . New ( "Invalid config file." )
2018-07-24 18:08:00 +08:00
var errorInvalidConfigValue = errors . New ( "Invalid config value." )
var errorNewOwnerForbidden = errors . New ( "New user registrations are forbidden and closed." )
2018-07-05 13:06:52 +08:00
var errorThreadLocked = errors . New ( "This thread is locked. You cannot add new comments." )
2019-02-19 00:23:44 +08:00
var errorDatabaseMigration = errors . New ( "Encountered error applying database migration." )
2019-02-19 05:30:54 +08:00
var errorNoSuchUnsubscribeSecretHex = errors . New ( "Invalid unsubscribe link." )
2019-03-03 04:14:42 +08:00
var errorEmptyPaths = errors . New ( "Empty paths field." )
2019-05-02 06:48:25 +08:00
var errorInvalidDomain = errors . New ( "Invalid domain name. Do not include the URL path after the forward slash." )
2019-06-06 16:27:42 +08:00
var errorInvalidEntity = errors . New ( "That entity does not exist." )
2020-01-03 05:41:07 +08:00
var errorCannotDeleteOwnerWithActiveDomains = errors . New ( "You cannot delete your account until all domains associated with your account are deleted." )
var errorNoSuchOwner = errors . New ( "No such owner." )
2020-02-14 09:11:47 +08:00
var errorCannotUpdateOauthProfile = errors . New ( "You cannot update the profile of an external account managed by third-party log in. Please use the appropriate platform to update your details." )
2020-02-01 15:12:21 +08:00
var errorUnsupportedCommentoImportVersion = errors . New ( "Unsupported Commento import format version." )