MCPcopy Create free account
hub / github.com/StephanyBatista/EmailN / ProcessErrorToReturn

Function ProcessErrorToReturn

internal/internal-errors/errors.go:11–16  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

9var ErrInternal error = errors.New("Internal Server Error")
10
11func ProcessErrorToReturn(err error) error {
12 if !errors.Is(err, gorm.ErrRecordNotFound) {
13 return ErrInternal
14 }
15 return err
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected