```js import { redirectToLogin } from 'new-frontend/utils/route-helpers'; import { UnauthorizedError } from 'ember-ajax/errors'; function commonErrorHandler(error) { if (UnauthorizedError(error)) { redirectToLogin.call(this); } } export { commonErrorHandler }; ``` I have this function in utility. Whenever I call the function `commonErrorHandler`, I'm getting the following error. <img width="841" alt="Screenshot 2022-07-02 at 1 55 52 PM" src="https://user-images.githubusercontent.com/9314305/176993037-feecaa4f-41f5-419b-a2a5-b26d3dc5cd9e.png"> <img width="835" alt="Screenshot 2022-07-02 at 1 56 00 PM" src="https://user-images.githubusercontent.com/9314305/176993051-ab0ca75a-8345-4670-b334-70dc20af0bea.png">
I have this function in utility. Whenever I call the function
commonErrorHandler, I'm getting the following error.