clierror

package
v6.6.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAction = func() {
		os.Exit(1)
	}
)

Functions

func CheckError

func CheckError(err error, outErr io.Writer)

CheckError is Deprecated! - Use die.Die instead, this function doesn't only "Check" an error, it dies, and takes your precious error away with it :(

CheckError Standard error checking

Types

type CliError

type CliError struct {
	Err    error  `json:"Error,omitempty"`
	Detail string `json:"Detail,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL