errutil

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errutil provides functions for parsing and extracting specialized error details, such as Git stderr logs.

Index

Constants

View Source
const EarthlyGitStdErrMagicString = "EARTHLY_GIT_STDERR"

EarthlyGitStdErrMagicString is a magic string that is prepended to the base64 encoded git stderr.

Variables

This section is empty.

Functions

func ExtractEarthlyGitStdErr

func ExtractEarthlyGitStdErr(errStr string) (extracted, shorterErr string, ok bool)

ExtractEarthlyGitStdErr scans an error string for a base64 payload that contains the git stderr and returns the extracted stderr and a shorter error string which does not include the base64 payload. If no payload was extracted, then false is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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