This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
_getById handle unknown keys better #1331
Open
Description
Right now when invoked with an unknown key, _getById
will throw new NoProviderError(null)
, which is not very helpful.
_getById(int keyId) {
//switch ....
throw new NoProviderError(DirectiveInjector._KEYS[keyId]);
}
This can be improved by changing NoProviderError
to include the keyId
in addition to the key itself.