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

Function WithJobError

coderd/database/dbfake/dbfake.go:109–113  ·  view source on GitHub ↗

WithJobError sets the error message for the provisioner job.

(msg string)

Source from the content-addressed store, hash-verified

107
108// WithJobError sets the error message for the provisioner job.
109func WithJobError(msg string) BuilderOption {
110 return func(b *WorkspaceBuildBuilder) {
111 b.jobError = msg
112 }
113}
114
115// WithJobErrorCode sets the error code for the provisioner job.
116func WithJobErrorCode(code string) BuilderOption {

Callers 2

createWorkspaceMethod · 0.92

Calls

no outgoing calls

Tested by 2

createWorkspaceMethod · 0.74