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

Function JobIsMissingParameterErrorCode

codersdk/provisionerdaemons.go:175–177  ·  view source on GitHub ↗

JobIsMissingParameterErrorCode returns whether the error is a missing parameter error. This can indicate to consumers that they should check parameters.

(code JobErrorCode)

Source from the content-addressed store, hash-verified

173// JobIsMissingParameterErrorCode returns whether the error is a missing parameter error.
174// This can indicate to consumers that they should check parameters.
175func JobIsMissingParameterErrorCode(code JobErrorCode) bool {
176 return string(code) == runner.MissingParameterErrorCode
177}
178
179// JobIsMissingRequiredTemplateVariableErrorCode returns whether the error is a missing a required template
180// variable error. This can indicate to consumers that they need to provide required template variables.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected