execerr

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package execerr contains an error handler for errors returned by the exec library. When an exec.ExitError is returned, it's formatted into an error with details about the command that was executed and it's output as present on the exec.ExitError.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(err error) error

From attempts to parse the provided error as an exec.ExitError. If it's not an exec.ExitError, the original error is returned unchanged.

Otherwise, a new error is returned with details about the command that was executed and it's output as present on the exec.ExitError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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