Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomError instanceof not working #214

Open
hortelanobruno-ol opened this issue Nov 16, 2022 · 0 comments
Open

CustomError instanceof not working #214

hortelanobruno-ol opened this issue Nov 16, 2022 · 0 comments
Assignees

Comments

@hortelanobruno-ol
Copy link

Describe the bug

When we throw a CustomError on a function of a service that is injected usingtsyring and then we do an instanceof of that error the result is "error " instead of the CustomErrorClass.

We are using "tsyringe": "^4.7.0" and "typescript": "^4.7.4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants