cleanup(di): changed an error message to be more descriptive
This commit is contained in:
3
modules/angular2/src/di/exceptions.js
vendored
3
modules/angular2/src/di/exceptions.js
vendored
@ -106,7 +106,8 @@ export class NoAnnotationError extends Error {
|
||||
message:string;
|
||||
constructor(typeOrFunc) {
|
||||
super();
|
||||
this.message = `Cannot resolve all parameters for ${stringify(typeOrFunc)}`;
|
||||
this.message = `Cannot resolve all parameters for ${stringify(typeOrFunc)}.` +
|
||||
` Make sure they all have valid type or annotations.`;
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
Reference in New Issue
Block a user