aligned code enterprises,organizations and repositories and fixed sql tests
This commit is contained in:
parent
5813dce051
commit
f9f917ba05
9 changed files with 147 additions and 144 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue