errors have been modified in errorHandler.js