MCPcopy Index your code
hub / github.com/coder/coder / streamErrorStatus

Function streamErrorStatus

coderd/x/chatd/chatdebug/model.go:1259–1267  ·  view source on GitHub ↗
(current Status, err error)

Source from the content-addressed store, hash-verified

1257}
1258
1259func streamErrorStatus(current Status, err error) Status {
1260 if current == StatusError {
1261 return current
1262 }
1263 if err == nil {
1264 return StatusError
1265 }
1266 return stepStatusForError(err)
1267}
1268
1269func stepStatusForError(err error) Status {
1270 if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {

Callers 3

wrapStreamSeqFunction · 0.85
wrapObjectStreamSeqFunction · 0.85
TestStreamErrorStatusFunction · 0.85

Calls 1

stepStatusForErrorFunction · 0.85

Tested by 1

TestStreamErrorStatusFunction · 0.68