Commit 24e673ae introduced a bug that cause the Error() function to
call itself recursively forever, causing a stack overflow. We explicitly
cast the error to its base type to avoid the recursion and add a small
test case that would've triggered the bug before.
Commit 24e673ae introduced a bug that cause the Error() function to call itself recursively forever, causing a stack overflow. We explicitly cast the error to its base type to avoid the recursion and add a small test case that would've triggered the bug before.