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)
| 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. |
| 181 | func 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 |
no outgoing calls
no test coverage detected