Port fix handling access denied error in pool #229
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ func handleError(msg string, err error) error {
|
|||
}
|
||||
if strings.Contains(err.Error(), "not found") {
|
||||
return fmt.Errorf("%w: %s", ErrNodeNotFound, err.Error())
|
||||
} else if strings.Contains(err.Error(), "is denied by") {
|
||||
} else if strings.Contains(err.Error(), "denied") {
|
||||
return fmt.Errorf("%w: %s", ErrNodeAccessDenied, err.Error())
|
||||
}
|
||||
return fmt.Errorf("%s: %w", msg, err)
|
||||
|
|
Loading…
Reference in a new issue