Skip to content

Commit

Permalink
chore(common): normalize error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Mar 13, 2021
1 parent d4bee1c commit 7303f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ var (
ErrInvalidURL = errors.New("url is invalid")
ErrInvalidURLLen = errors.New("url is too short or too long, should be 7-2048 chars")
ErrBlacklistedURL = errors.New("url matches blacklist pattern")
ErrKeywordsCount = errors.New("url must not have more than 10 keywords")
ErrKeywordsCount = errors.New("keywords must not be more than 10")
ErrKeywordLength = errors.New("keyword must contain 2-25 characters")
ErrInvalidDate = errors.New("expires_on should be in 'yyyy-mm-dd hh:mm:ss' format")
ErrPastExpiration = errors.New("expires_on can not be date in past")
ErrURLAlreadyShort = errors.New("the url is already shortened")
ErrNoMatchingData = errors.New("no data matching given criteria found")
ErrURLAlreadyShort = errors.New("url is already shortened")
ErrNoMatchingData = errors.New("no data matching given criteria")
ErrTokenRequired = errors.New("auth token is required")
ErrTokenInvalid = errors.New("auth token is invalid")
ErrShortCodeEmpty = errors.New("short_code must not be empty")
ErrNoShortCode = errors.New("the given short_code is not found")
ErrNoShortCode = errors.New("short_code is not found")
)

0 comments on commit 7303f67

Please sign in to comment.