(isRequired bool)
| 377 | } |
| 378 | |
| 379 | func ErrorCannotBeEmptyOrNull(isRequired bool) error { |
| 380 | msg := "cannot be empty or null" |
| 381 | if !isRequired { |
| 382 | msg = "cannot be empty or null (specify a value, or remove the key to use the default value)" |
| 383 | } |
| 384 | return errors.WithStack(&errors.Error{ |
| 385 | Kind: ErrCannotBeEmptyOrNull, |
| 386 | Message: msg, |
| 387 | }) |
| 388 | } |
| 389 | |
| 390 | func ErrorCannotBeEmpty() error { |
| 391 | return errors.WithStack(&errors.Error{ |
no test coverage detected