MCPcopy Create free account
hub / github.com/cashapp/hermit / WithStack

Function WithStack

errors/errors.go:114–119  ·  view source on GitHub ↗

WithStack chains source location information to an error if "err" is not nil.

(err error)

Source from the content-addressed store, hash-verified

112
113// WithStack chains source location information to an error if "err" is not nil.
114func WithStack(err error) error {
115 if err == nil {
116 return nil
117 }
118 return newErr(err, "")
119}
120
121func Join(errs ...error) error {
122 return errors.Join(errs...)

Callers 15

InitFunction · 0.92
EnvDirFromProxyLinkFunction · 0.92
getSourcesFunction · 0.92
OpenEnvFunction · 0.92
WithEnvDirMethod · 0.92
VerifyMethod · 0.92
EnsureInstalledMethod · 0.92
ValidateManifestsMethod · 0.92
LinkedBinariesMethod · 0.92
uninstallMethod · 0.92
unlinkPackageMethod · 0.92
TestMethod · 0.92

Calls 1

newErrFunction · 0.85

Tested by 2

RoundTripMethod · 0.74
runCommandInDirFunction · 0.74