MCPcopy Index your code
hub / github.com/loft-sh/devpod / Error

Method Error

pkg/command/command.go:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (e *Error) Error() string {
25 message := ""
26 if len(e.stdout) > 0 {
27 message += string(e.stdout) + "\n"
28 }
29
30 var exitError *exec.ExitError
31 if errors.As(e.err, &exitError) && len(exitError.Stderr) > 0 {
32 message += string(exitError.Stderr) + "\n"
33 }
34
35 return message + e.err.Error()
36}
37
38func Exists(cmd string) bool {
39 _, err := exec.LookPath(cmd)

Callers 14

readLogStreamFunction · 0.45
RunCredentialsServerFunction · 0.45
runnerProxyFunction · 0.45
StartCLIFunction · 0.45
RecordCLIMethod · 0.45
CreateIfNotExistsFunction · 0.45
InjectAndExecuteFunction · 0.45
exitWithErrorMethod · 0.45
WaitForInstanceFunction · 0.45
VersionMethod · 0.45
getRunnerOptionsFunction · 0.45
getTemplateOptionsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected