Bump reva deps (#8412)
* bump dependencies Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump reva and add config options Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> --------- Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
+5
-5
@@ -117,7 +117,7 @@ func InternalServerError(id, format string, a ...interface{}) error {
|
||||
}
|
||||
}
|
||||
|
||||
// Equal tries to compare errors
|
||||
// Equal tries to compare errors.
|
||||
func Equal(err1 error, err2 error) bool {
|
||||
verr1, ok1 := err1.(*Error)
|
||||
verr2, ok2 := err2.(*Error)
|
||||
@@ -137,7 +137,7 @@ func Equal(err1 error, err2 error) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// FromError try to convert go error to *Error
|
||||
// FromError try to convert go error to *Error.
|
||||
func FromError(err error) *Error {
|
||||
if err == nil {
|
||||
return nil
|
||||
@@ -149,7 +149,7 @@ func FromError(err error) *Error {
|
||||
return Parse(err.Error())
|
||||
}
|
||||
|
||||
// As finds the first error in err's chain that matches *Error
|
||||
// As finds the first error in err's chain that matches *Error.
|
||||
func As(err error) (*Error, bool) {
|
||||
if err == nil {
|
||||
return nil, false
|
||||
@@ -167,8 +167,8 @@ func NewMultiError() *MultiError {
|
||||
}
|
||||
}
|
||||
|
||||
func (e *MultiError) Append(err *Error) {
|
||||
e.Errors = append(e.Errors, err)
|
||||
func (e *MultiError) Append(err ...*Error) {
|
||||
e.Errors = append(e.Errors, err...)
|
||||
}
|
||||
|
||||
func (e *MultiError) HasErrors() bool {
|
||||
|
||||
Reference in New Issue
Block a user