errhandler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAndExit

func HandleAndExit(err error)

HandleAndExit prints the error to stderr and exits non-zero. Upstream callers should wrap errors with %w for context.

func RecoverAndExit

func RecoverAndExit()

RecoverAndExit recovers from panics in main, logs them, and exits with a generic message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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