cmderr

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnErr

func ExitOnErr(err error)

ExitOnErr writes error to os.Stderr and calls os.Exit with passed exit code or by default 1. Does nothing if err is nil.

Types

type ExitErr

type ExitErr struct {
	Code  int
	Cause error
}

ExitErr specific error for ExitOnErr function that passes the exit code and error caused.

func (ExitErr) Error

func (x ExitErr) Error() string

Jump to

Keyboard shortcuts

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