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

Function processingFailure

coderd/x/chatd/chatd.go:5648–5658  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

5646}
5647
5648func processingFailure(err error) (chaterror.ClassifiedError, bool) {
5649 if err == nil {
5650 return chaterror.ClassifiedError{}, false
5651 }
5652
5653 classified := chaterror.Classify(err)
5654 if classified.Message == "" {
5655 return chaterror.ClassifiedError{}, false
5656 }
5657 return classified, true
5658}
5659
5660func encodeChatLastErrorPayload(payload *codersdk.ChatError) (pqtype.NullRawMessage, error) {
5661 if payload == nil {

Callers 1

processChatMethod · 0.85

Calls 1

ClassifyFunction · 0.92

Tested by

no test coverage detected