MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / SimpleMessageFromPossibleConnectionError

Function SimpleMessageFromPossibleConnectionError

pkg/remote/sshclient.go:133–141  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

131}
132
133func SimpleMessageFromPossibleConnectionError(err error) string {
134 if err == nil {
135 return ""
136 }
137 if ce, ok := err.(ConnectionError); ok {
138 return ce.Err.Error()
139 }
140 return err.Error()
141}
142
143func ClassifyConnError(err error) (string, string) {
144 code := utilds.GetErrorCode(err)

Callers 3

connectInternalMethod · 0.92
connectInternalFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected