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

Method handleError

pkg/jobmanager/streammanager.go:336–344  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

334}
335
336func (sm *StreamManager) handleError(err error) {
337 sm.lock.Lock()
338 defer sm.lock.Unlock()
339
340 log.Printf("handleError: PTY error=%v, totalSize=%d", err, sm.buf.TotalSize())
341 sm.eofPos = sm.buf.TotalSize()
342 sm.terminalEvent = &streamTerminalEvent{err: err.Error()}
343 sm.drainCond.Signal()
344}
345
346func (sm *StreamManager) senderLoop() {
347 for {

Callers 1

readLoopMethod · 0.95

Calls 2

TotalSizeMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected