typeorm-typedi-extensions icon indicating copy to clipboard operation
typeorm-typedi-extensions copied to clipboard

Mistake in making error message

Open qodunpob opened this issue 4 years ago • 1 comments

There is a mistake: https://github.com/typeorm/typeorm-typedi-extensions/blob/b6d540e2084c832a66573b23374384d367f725f5/src/errors/entity-type-missing.error.ts#L6

The addition operation will be executed first and the result will never be undefined. For the same reason Missing "entityType" parameter of "@InjectRepository" decorator will never be printed.

qodunpob avatar Feb 23 '21 13:02 qodunpob

Care to make a PR?

NoNameProvided avatar Mar 23 '21 15:03 NoNameProvided