Skip to content

Commit d3bafa5

Browse files
committed
cli: deprecate Errors type
The Errors type is no longer used by the CLI itself, and this custom "multi-error" implementation had both limitations (empty list not being `nil`), as well as formatting not being great. All of this making it not something to recommend, and better handled with Go's stdlib. As far as I could find, there's no external consumers of this, but let's deprecate first, and remove in the next release. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 71ebbb8 commit d3bafa5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli/error.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
// Errors is a list of errors.
99
// Useful in a loop if you don't want to return the error right away and you want to display after the loop,
1010
// all the errors that happened during the loop.
11+
//
12+
// Deprecated: use [errors.Join] instead; will be removed in the next release.
1113
type Errors []error
1214

1315
func (errList Errors) Error() string {

0 commit comments

Comments
 (0)