generated from PenaSide/GolangTemplate
fix: errors settype return type
This commit is contained in:
parent
09f11889a6
commit
6cc3b49a81
@ -21,7 +21,7 @@ type Error interface {
|
||||
Error() string
|
||||
Type() ErrorType
|
||||
Wrap(message string) Error
|
||||
SetType(errorType ErrorType) Error
|
||||
SetType(errorType ErrorType)
|
||||
}
|
||||
|
||||
type customError struct {
|
||||
@ -57,8 +57,6 @@ func (receiver *customError) Wrap(message string) Error {
|
||||
return receiver
|
||||
}
|
||||
|
||||
func (receiver *customError) SetType(errorType ErrorType) Error {
|
||||
func (receiver *customError) SetType(errorType ErrorType) {
|
||||
receiver.errorType = errorType
|
||||
|
||||
return receiver
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user