docs(bonfire): the ErrReported comment names the WithExitCode code (IN-14)
This commit is contained in:
@@ -71,7 +71,8 @@ func WithHint(err error, explanation, try string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ErrReported marks an error whose details the command already printed:
|
// ErrReported marks an error whose details the command already printed:
|
||||||
// the error block prints nothing and the exit code is 1.
|
// the error block prints nothing and the exit code is 1, or the code given
|
||||||
|
// with WithExitCode.
|
||||||
var ErrReported = errors.New("bonfire: error already reported")
|
var ErrReported = errors.New("bonfire: error already reported")
|
||||||
|
|
||||||
type reportedError struct {
|
type reportedError struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user