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

Function JobIsMissingRequiredTemplateVariableErrorCode

codersdk/provisionerdaemons.go:181–183  ·  view source on GitHub ↗

JobIsMissingRequiredTemplateVariableErrorCode returns whether the error is a missing a required template variable error. This can indicate to consumers that they need to provide required template variables.

(code JobErrorCode)

Source from the content-addressed store, hash-verified

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.
181func JobIsMissingRequiredTemplateVariableErrorCode(code JobErrorCode) bool {
182 return string(code) == runner.RequiredTemplateVariablesErrorCode
183}
184
185// JobIsInsufficientQuotaErrorCode returns whether the error is an insufficient
186// quota error. This can indicate to consumers that they should explain quota

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected