MCPcopy Index your code
hub / github.com/cloudfoundry/cli / handleError

Method handleError

cf/commands/application/logs.go:129–138  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

127}
128
129func (cmd *Logs) handleError(err error) error {
130 switch err.(type) {
131 case nil:
132 case *errors.InvalidSSLCert:
133 return errors.New(err.Error() + T("\nTIP: use 'cf login -a API --skip-ssl-validation' or 'cf api API --skip-ssl-validation' to suppress this error"))
134 default:
135 return err
136 }
137 return nil
138}

Callers 2

recentLogsForMethod · 0.95
tailLogsForMethod · 0.95

Calls 2

NewFunction · 0.92
ErrorMethod · 0.65

Tested by

no test coverage detected