Documentation ¶
Index ¶
- func CheckError(err error, msg string) bool
- func CheckProperty(properties map[string]string, property string) (string, error)
- func ErrorString(err error) string
- func FailOnError(err error, msg string)
- func PrintError(err error)
- func PrintErrors(errors []error)
- func PrintWarning(err error)
- func PrintWarnings(errors []error)
- type PrettyPrintableError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckProperty ¶
func ErrorString ¶
func FailOnError ¶
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
}
Click to show internal directories.
Click to hide internal directories.