mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
fserrors: don't panic on uncomparable errors
This commit is contained in:
parent
dca482e058
commit
c5775cf73d
@ -194,7 +194,7 @@ func Cause(cause error) (retriable bool, err error) {
|
||||
// this case.
|
||||
err = prev
|
||||
}
|
||||
if err == prev {
|
||||
if reflect.DeepEqual(err, prev) {
|
||||
// Unpack any struct or *struct with a field
|
||||
// of name Err which satisfies the error
|
||||
// interface. This includes *url.Error,
|
||||
@ -215,7 +215,7 @@ func Cause(cause error) (retriable bool, err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if err == prev {
|
||||
if reflect.DeepEqual(err, prev) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user