15 lines
429 B
Go
15 lines
429 B
Go
package crm
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
crmDomain "apps/backend/internal/module/crm/domain"
|
|
)
|
|
|
|
// notReady is returned by every crm capability that is routed but not implemented yet.
|
|
// It maps to HTTP 501 / code 501010 in internal/response, so a caller can never mistake
|
|
// a missing implementation for a successful empty result.
|
|
func notReady(capability string) error {
|
|
return fmt.Errorf("%w: %s", crmDomain.ErrNotReady, capability)
|
|
}
|