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

Function appendUserSecretValidationError

coderd/usersecrets.go:355–363  ·  view source on GitHub ↗
(validations []codersdk.ValidationError, field string, err error)

Source from the content-addressed store, hash-verified

353}
354
355func 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

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected