-
-
Notifications
You must be signed in to change notification settings - Fork 0
errors: define error with error code supporting #18
Copy link
Copy link
Open
Labels
Description
Motivation: Silent error is not enough for a better experience with CLI
Lines 7 to 13 in d3a8508
| type Silent interface { | |
| error | |
| // Code returns an exit code. | |
| Code() int | |
| // Message optionally returns an exit message. | |
| Message() (string, bool) | |
| } |
To do:
- Support wrap/unwrap/cause: https://github.com/octolab/pkg/blob/19e671e0420f209e9ee8c9294722eeb4d4834cf3/errors/errors.go#L58-L65
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog