match console errors to errors emitted from custom error handler