aligned code enterprises,organizations and repositories and fixed sql tests

This commit is contained in:
mgoeppe 2023-01-23 17:43:32 +01:00
parent 5813dce051
commit f9f917ba05
9 changed files with 147 additions and 144 deletions

View file

@ -55,6 +55,20 @@ type ProviderError struct {
baseError
}
// NewMissingSecretError returns a new MissingSecretError
func NewMissingSecretError(msg string, a ...interface{}) error {
return &MissingSecretError{
baseError{
msg: fmt.Sprintf(msg, a...),
},
}
}
// MissingSecretError is returned the secret to validate a webhook is missing
type MissingSecretError struct {
baseError
}
// NewUnauthorizedError returns a new UnauthorizedError
func NewUnauthorizedError(msg string) error {
return &UnauthorizedError{