error

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGenericError

func CheckGenericError(logger *log.Entry, err error)

CheckGenericError checks if there's an error, shows it and exits the program if it is activated

func FormatGenericGolangOutput

func FormatGenericGolangOutput(error string) error

FormatGenericGolangOutput receives a string, usually the output of a command, and replaces the the generic "exit status 1" that golang programs return when failing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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