cleanup(di): changed an error message to be more descriptive

This commit is contained in:
vsavkin
2015-04-13 10:05:11 -07:00
parent 7bd682bb27
commit 97fc248e00
2 changed files with 4 additions and 2 deletions

View File

@ -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() {