Skip to content

Commit

Permalink
Improve error message (#450)
Browse files Browse the repository at this point in the history
* feat: improve error message

Signed-off-by: Jingfu Wang <jingfu.wang@coinbase.com>

* fix: make gen

Signed-off-by: Jingfu Wang <jingfu.wang@coinbase.com>

Signed-off-by: Jingfu Wang <jingfu.wang@coinbase.com>
  • Loading branch information
GeekArthur authored Oct 14, 2022
1 parent e03849b commit 255864d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion constructor/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ func (c *Coordinator) process( // nolint:gocognit
return NoJobsWaitTime, nil
}
if errors.Is(err, ErrStalled) {
color.Yellow("processing stalled")
color.Yellow(
"processing stalled, the request_funds and/or create_account workflow(s) are/is not defined properly",
)

return -1, ErrStalled
}
Expand Down
4 changes: 3 additions & 1 deletion constructor/coordinator/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ var (
// ErrStalled is returned when the caller does not define
// a CreateAccount and/or RequestFunds workflow and we run out
// of available options (i.e. we can't do anything).
ErrStalled = errors.New("processing stalled")
ErrStalled = errors.New(
"processing stalled, the request_funds and/or create_account workflow(s) are/is not defined properly",
)

// ErrNoWorkflows is returned when no workflows are provided
// during initialization.
Expand Down

0 comments on commit 255864d

Please sign in to comment.