Skip to content

Commit

Permalink
fix(di): type error in InvalidProviderError
Browse files Browse the repository at this point in the history
 - when trying to instantiate an injector with an unknown provider
Closes #7729
  • Loading branch information
justindujardin authored and mhevery committed May 23, 2016
1 parent 9c2fe66 commit c43636f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/@angular/core/src/di/reflective_exceptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down

0 comments on commit c43636f

Please sign in to comment.