(err error)
| 9 | var ErrInternal error = errors.New("Internal Server Error") |
| 10 | |
| 11 | func ProcessErrorToReturn(err error) error { |
| 12 | if !errors.Is(err, gorm.ErrRecordNotFound) { |
| 13 | return ErrInternal |
| 14 | } |
| 15 | return err |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected