instanceof Error
try {
} catch (error) {
// error typescript any
}
I want to know what the error is
if (e isntanceof ConvexError) {
console.log(e.code)
}
Because I tried to find out what kind of error you returned, but I couldn’t find an import for it.
PS Of course, I can check for the presence of the code key and compare it.

