Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

errors.gno

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