jeffijoe / awilix-express

Awilix helpers/middleware for Express
MIT License
118 stars 7 forks source link

More descriptive error messages when controller method attempting to be invoked does not exist #9

Closed jhoscar1 closed 6 years ago

jhoscar1 commented 6 years ago

Spent some time finding and fixing a bug related to the message Cannot read property 'apply' of undefined in the invokers.

Turns out this was coming from the fact that I was attempting to invoke a method that no longer existed because I had changed the name.

I believe a more descriptive error could be helpful.

talyssonoc commented 6 years ago

Thanks for your contribution! Just published v1.1.0 https://www.npmjs.com/package/awilix-express/v/1.1.0