Use SpamError class instead of error.name for spam detection
The following discussion from !17553 (merged) should be addressed:
-
@winh started a discussion: (+1 comment) We can consider introducing a custom error class to do
if (error instanceof SpamError) {instead. However this would be out of scope here.
Edited by Inactive Account