Nest: No error message / silent error message about duplicated token

Created on 17 Oct 2018  路  3Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

nest is not logging any error log about token duplicate
image

Expected behavior

should log some error

Minimal reproduction of the problem with instructions

https://gist.github.com/hejkerooo/6d368bd54fac459974c7a94794fd1c6e

What is the motivation / use case for changing the behavior?

Easier debugging

Environment


Nest version: 5.1.0


For Tooling issues:
- Node version: 8.12.0
- Platform:  Mac

Others:

question 馃檶

Most helpful comment

I think - if it's not much work - printing error that circular dependency occurs will be always helpful

All 3 comments

As far as I see, you have created a circular dependency where the class depends on the instance of the completely same class which generally doesn't make sense at all 馃檨

Yup, it doesn't make any sense - but any log would be helpful :)
I've added comment to my gist about this.

I think - if it's not much work - printing error that circular dependency occurs will be always helpful

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KamGor picture KamGor  路  3Comments

janckerchen picture janckerchen  路  3Comments

menme95 picture menme95  路  3Comments

artaommahe picture artaommahe  路  3Comments

marshall007 picture marshall007  路  3Comments