fix(di): type error in InvalidProviderError
- when trying to instantiate an injector with an unknown provider Closes #7729
This commit is contained in:
parent
9c2fe660a3
commit
c43636f2bb
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue