fix(di): type error in InvalidProviderError

- when trying to instantiate an injector with an unknown provider
Closes #7729
This commit is contained in:
Justin DuJardin 2016-03-22 18:56:53 -07:00 committed by Misko Hevery
parent 9c2fe660a3
commit c43636f2bb
1 changed files with 1 additions and 2 deletions

View File

@ -175,8 +175,7 @@ export class InstantiationError extends WrappedException {
*/
export class InvalidProviderError extends BaseException {
constructor(provider) {
super("Invalid provider - only instances of Provider and Type are allowed, got: " +
provider.toString());
super(`Invalid provider - only instances of Provider and Type are allowed, got: ${provider}`);
}
}