onebeyond / systemic

📦 A minimal dependency injection framework.
https://onebeyond.github.io/systemic
MIT License
56 stars 7 forks source link

Improve errors on start up #4

Closed feliun closed 7 years ago

feliun commented 7 years ago

When a systemic starts with some missing dependencies the error that bubbles up is not very clear:

TypeError: Cannot match against 'undefined' or 'null'

Ideally you want to see what component is failing and with which dependency.

cressie176 commented 7 years ago

Was this caused by the require-all bug you found? There's a test for reporting missing dependencies so I assume so.

cressie176 commented 7 years ago

Fixed.