Sagi Dayan
2ca1e7826a
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m35s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
15 lines
294 B
Go
15 lines
294 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
type SecretExistsError struct {
|
|
secret string
|
|
}
|
|
|
|
func (e *SecretExistsError) Error() string {
|
|
return fmt.Sprintf("secret %s already exists", e.secret)
|
|
}
|
|
|
|
func NewSecretExsistsError(secret string) *SecretExistsError {
|
|
return &SecretExistsError{secret: secret}
|
|
}
|