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

Method SetWshError

pkg/wslconn/wslconn.go:723–731  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

721}
722
723func (conn *WslConn) SetWshError(err error) {
724 conn.WithLock(func() {
725 if err == nil {
726 conn.WshError = ""
727 } else {
728 conn.WshError = err.Error()
729 }
730 })
731}
732
733func (conn *WslConn) ClearWshError() {
734 conn.WithLock(func() {

Callers 2

persistWshInstalledMethod · 0.95

Calls 2

WithLockMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected