Fix bad recursion in errdefs check

This commit is contained in:
Brian Goff
2019-06-04 15:06:41 -07:00
parent 20e710043f
commit f414dc8bf2
4 changed files with 10 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ func IsInvalidInput(err error) bool {
}
if e, ok := err.(causal); ok {
return IsInvalidInput(e)
return IsInvalidInput(e.Cause())
}
return false