errutils

package
v2.19.1-dev.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, msg string) bool

func ErrorString

func ErrorString(err error) string

func PrintError

func PrintError(err error)

PrintError should pretty-print the error using a more user-friendly format

func PrintErrors

func PrintErrors(errors []error)

func PrintWarning

func PrintWarning(err error)

PrintWarning prints the error as a warning. The error is pretty-printed if the error implements the PrettyPrintableError interface

func PrintWarnings

func PrintWarnings(errors []error)

Types

type PrettyPrintableError

type PrettyPrintableError interface {
	PrettyError() string
}

Jump to

Keyboard shortcuts

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