remove console.log test from error handler