File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
modules/angular2/src/core/change_detection Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export class AbstractChangeDetector<T> implements ChangeDetector {
7373
7474 handleEvent ( eventName : string , elIndex : number , event : any ) : boolean {
7575 if ( ! this . hydrated ( ) ) {
76- this . throwDehydratedError ( ) ;
76+ this . throwDehydratedError ( ` ${ this . id } -> ${ eventName } ` ) ;
7777 }
7878 try {
7979 var locals = new Map < string , any > ( ) ;
@@ -130,7 +130,7 @@ export class AbstractChangeDetector<T> implements ChangeDetector {
130130 // facilitate error reporting.
131131 detectChangesInRecords ( throwOnChange : boolean ) : void {
132132 if ( ! this . hydrated ( ) ) {
133- this . throwDehydratedError ( ) ;
133+ this . throwDehydratedError ( this . id ) ;
134134 }
135135 try {
136136 this . detectChangesInRecordsInternal ( throwOnChange ) ;
@@ -362,7 +362,7 @@ export class AbstractChangeDetector<T> implements ChangeDetector {
362362 oldValue , newValue , null ) ;
363363 }
364364
365- throwDehydratedError ( ) : void { throw new DehydratedException ( ) ; }
365+ throwDehydratedError ( detail : string ) : void { throw new DehydratedException ( detail ) ; }
366366
367367 private _currentBinding ( ) : BindingTarget {
368368 return this . bindingTargets [ this . propertyBindingIndex ] ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export class ChangeDetectionError extends WrappedException {
9191 * This is an internal Angular error.
9292 */
9393export class DehydratedException extends BaseException {
94- constructor ( ) { super ( ' Attempt to use a dehydrated detector.' ) ; }
94+ constructor ( details : string ) { super ( ` Attempt to use a dehydrated detector: ${ details } ` ) ; }
9595}
9696
9797/**
You can’t perform that action at this time.
0 commit comments