lib/errors: don't panic on uncomparable errors #3123

Same fix as c5775cf73d
This commit is contained in:
Nick Craig-Wood 2019-04-25 16:14:39 +01:00
parent 81f8a5e0d9
commit 7963320a29

View File

@ -62,7 +62,7 @@ func Walk(err error, f WalkFunc) {
}
}
}
if err == prev {
if reflect.DeepEqual(err, prev) {
break
}
}