MCPcopy Index your code
hub / github.com/coder/coder / wrapExitErr

Function wrapExitErr

tailnet/test/integration/network.go:885–895  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

883}
884
885func wrapExitErr(err error) error {
886 if err == nil {
887 return nil
888 }
889
890 var exitErr *exec.ExitError
891 if xerrors.As(err, &exitErr) {
892 return xerrors.Errorf("output: %s\n\n%w", bytes.TrimSpace(exitErr.Stderr), exitErr)
893 }
894 return err
895}

Callers 11

SetupNetworkingMethod · 0.85
SetupNetworkingMethod · 0.85
createNetNSFunction · 0.85
createBridgeFunction · 0.85
setInterfaceBridgeFunction · 0.85
setInterfaceIPFunction · 0.85
setInterfaceIP6Function · 0.85
setInterfaceUpFunction · 0.85
addRouteInNetNSFunction · 0.85
iptablesMasqueradeNonUDPFunction · 0.85
iptablesNATFunction · 0.85

Calls 2

AsMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected