MCPcopy Index your code
hub / github.com/smallstep/cli / exitError

Function exitError

internal/cryptoutil/cryptoutil.go:221–227  ·  view source on GitHub ↗

exitError returns the error displayed on stderr after running the given command.

(cmd *exec.Cmd, err error)

Source from the content-addressed store, hash-verified

219// exitError returns the error displayed on stderr after running the given
220// command.
221func exitError(cmd *exec.Cmd, err error) error {
222 var ee *exec.ExitError
223 if errors.As(err, &ee) {
224 return fmt.Errorf("command %q failed with:\n%s", cmd.String(), ee.Stderr)
225 }
226 return fmt.Errorf("command %q failed with: %w", cmd.String(), err)
227}
228
229// newKMSSigner creates a signer using `step-kms-plugin` as the signer.
230func newKMSSigner(kmsURI, key string) (*kmsSigner, error) {

Callers 5

LoadCertificateFunction · 0.85
newKMSSignerFunction · 0.85
newKMSPublicKeyFunction · 0.85
SignMethod · 0.85
AttestMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…