const ErrUserCallOnly, ErrReward, ErrRewardRange, ErrTitle, ErrDetails, ErrDone, ErrCategory, ErrDeadline, ErrNotFound, ErrNotOpen, ErrOwnTask, ErrPastDeadline, ErrNotDoer, ErrNotPoster, ErrNotTaken, ErrNotInReview, ErrURL, ErrChangesUsed, ErrNote, ErrTooEarly, ErrDoerHasTime, ErrCannotCancel
1const (
2 ErrUserCallOnly = "gild: post must be a direct user call"
3 ErrReward = "gild: send exactly one coin of " + Denom
4 ErrRewardRange = "gild: reward is outside the allowed range"
5 ErrTitle = "gild: title must be 3 to 120 characters"
6 ErrDetails = "gild: details are too long"
7 ErrDone = "gild: done text is too long"
8 ErrCategory = "gild: unknown category"
9 ErrDeadline = "gild: deadline must be 1 hour to 90 days from now"
10 ErrNotFound = "gild: task not found"
11 ErrNotOpen = "gild: task is not open"
12 ErrOwnTask = "gild: you cannot take your own task"
13 ErrPastDeadline = "gild: deadline has passed"
14 ErrNotDoer = "gild: only the doer can do this"
15 ErrNotPoster = "gild: only the poster can do this"
16 ErrNotTaken = "gild: task is not taken"
17 ErrNotInReview = "gild: task is not in review"
18 ErrURL = "gild: work link must start with https:// and have no spaces"
19 ErrChangesUsed = "gild: changes were already asked once"
20 ErrNote = "gild: note must be 1 to 1000 characters"
21 ErrTooEarly = "gild: the review window has not ended"
22 ErrDoerHasTime = "gild: the doer still has time before the deadline"
23 ErrCannotCancel = "gild: this task can no longer be cancelled"
24)Error messages. Each failure has its own message so callers, tests and the web app can tell them apart.