Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/common/errors.go

18 lignes
606 o
Go
Brut Vue normale Historique

2017-05-15 01:31:17 +02:00
package common
import (
"errors"
)
var ErrInsufficientPermission = errors.New("you are not allowed to do that")
var ErrUserExists = errors.New("user already exists")
var ErrNoSuchUser = errors.New("no such user")
var ErrBadLogin = errors.New("bad login")
var ErrUserBanned = errors.New("banned")
var ErrBadEmail = errors.New("bad email")
var ErrNoSuchEntry = errors.New("no such entry")
var ErrNoSuchComment = errors.New("no such comment")
var ErrNotFollowing = errors.New("not following that user")
var ErrInvalidToken = errors.New("invalid token")
var ErrExpiredToken = errors.New("token is expired")