rename addErrorHandler to error