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

Method Response

coderd/wsbuilder/wsbuilder.go:289–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287}
288
289func (e BuildError) Response() (int, codersdk.Response) {
290 // If the wrapped error knows how to produce its own response
291 // (e.g. DiagnosticError with Validations), prefer that over
292 // the generic BuildError response.
293 if inner, ok := httperror.IsResponder(e.Wrapped); ok {
294 return inner.Response()
295 }
296
297 return e.Status, codersdk.Response{
298 Message: e.Message,
299 Detail: e.Error(),
300 }
301}
302
303// Build computes and inserts a new workspace build into the database. If authFunc is provided, it also performs
304// authorization preflight checks.

Callers 1

Calls 3

ErrorMethod · 0.95
IsResponderFunction · 0.92
ResponseMethod · 0.65

Tested by 1