assert: use isError instead of instanceof in innerOk to define message type
Fixes: #50780 (closed)
I noticed that this issue is stalled even though there is an almost accepted PR(#51250) that solves the problem.
I addressed the comments and fixed the problem that was blocking the CI (we'll find out on the next CI run, hehe
P.S.: I added the author of the PR and the commenter as co-authors in the commit.
Co-Authored-By: Ruben Bridgewater ruben@bridgewater.de Co-Authored-By: Nihar Phansalkar phansalkarnihar@gmail.com