Skip to content

errors: define error with error code supporting #18

@kamilsk

Description

@kamilsk

Motivation: Silent error is not enough for a better experience with CLI

cli/errors/silent.go

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)
}
. Need to define abstract error with exit code support and ake it useful for go-tool and go-service templates.

To do:

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions