created console errorHandler