summaryrefslogtreecommitdiff
path: root/shrine/services/errors.go
blob: 1c390ff6b7b2f5e956b11f9bb7a4609f5e56006a (plain)
1
2
3
4
5
6
7
8
9
10
package services

import (
	"shrine/enums"
	"shrine/types/hypertext"
)

func fail(kind enums.ErrorKind, message string) *hypertext.ServiceError {
	return &hypertext.ServiceError{Kind: kind, Message: message}
}