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

Function stepStatusForError

coderd/x/chatd/chatdebug/model.go:1269–1274  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1267}
1268
1269func stepStatusForError(err error) Status {
1270 if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
1271 return StatusInterrupted
1272 }
1273 return StatusError
1274}
1275
1276func normalizeError(ctx context.Context, err error) normalizedErrorPayload {
1277 payload := normalizedErrorPayload{}

Callers 6

GenerateMethod · 0.85
StreamMethod · 0.85
GenerateObjectMethod · 0.85
StreamObjectMethod · 0.85
streamErrorStatusFunction · 0.85
TestStepStatusForErrorFunction · 0.85

Calls 1

IsMethod · 0.45

Tested by 1

TestStepStatusForErrorFunction · 0.68