MCPcopy
hub / github.com/smallstep/cli / errorAndExit

Function errorAndExit

exec/exec.go:194–197  ·  view source on GitHub ↗
(name string, err error)

Source from the content-addressed store, hash-verified

192}
193
194func errorAndExit(name string, err error) {
195 fmt.Fprintf(os.Stderr, "%s: %s\n", path.Base(name), err.Error())
196 os.Exit(-1)
197}
198
199// signalHandler forwards all the signals to the cmd.
200func signalHandler(cmd *exec.Cmd, exitCh chan int) {

Callers 3

ExecFunction · 0.85
RunFunction · 0.85
RunWithPidFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…