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

Function buildErrorCode

coderd/x/chatd/chattool/quotaerror.go:35–41  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

33}
34
35func buildErrorCode(err error) codersdk.JobErrorCode {
36 var buildErr *workspaceBuildError
37 if errors.As(err, &buildErr) {
38 return buildErr.code
39 }
40 return ""
41}
42
43// quotaErrorResult is the structured response returned when a workspace
44// build fails because the user's workspace quota is exhausted.

Callers 1

buildFailureToolResponseFunction · 0.85

Calls 1

AsMethod · 0.80

Tested by

no test coverage detected