1
0
mirror of https://github.com/zitadel/zitadel.git synced 2025-04-01 02:12:18 +00:00
Fabi 7295383621
fix: translation ()
* fix: translation

* fix: translation

* fix: translation

* fix: remove unused code

* fix: log err
2020-08-28 09:44:43 +02:00

20 lines
415 B
Go

package errors
import (
"strings"
)
// Error is a stdlib error extension.
// It contains parameters to identify errors through all application layers
type Error interface {
GetParent() error
GetMessage() string
SetMessage(string)
GetID() string
}
// Contains compares the error message with needle
func Contains(err error, needle string) bool {
return err != nil && strings.Contains(err.Error(), needle)
}