(validations []codersdk.ValidationError, field string, err error)
| 353 | } |
| 354 | |
| 355 | func appendUserSecretValidationError(validations []codersdk.ValidationError, field string, err error) []codersdk.ValidationError { |
| 356 | if err == nil { |
| 357 | return validations |
| 358 | } |
| 359 | return append(validations, codersdk.ValidationError{ |
| 360 | Field: field, |
| 361 | Detail: err.Error(), |
| 362 | }) |
| 363 | } |
| 364 | |
| 365 | // userSecretLimitResponse maps a per-user-limits trigger violation |
| 366 | // (raised by enforce_user_secrets_per_user_limits) to a 400. Returns |
no test coverage detected