MCPcopy
hub / github.com/wavetermdev/waveterm / SetWshError

Method SetWshError

pkg/remote/conncontroller/conncontroller.go:1027–1035  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1025}
1026
1027func (conn *SSHConn) SetWshError(err error) {
1028 conn.WithLock(func() {
1029 if err == nil {
1030 conn.WshError = ""
1031 } else {
1032 conn.WshError = err.Error()
1033 }
1034 })
1035}
1036
1037func (conn *SSHConn) ClearWshError() {
1038 conn.WithLock(func() {

Callers 1

persistWshInstalledMethod · 0.95

Calls 2

WithLockMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected