File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const Region = MarionetteObject.extend({
112
112
if ( this . getOption ( 'allowMissingEl' ) ) {
113
113
return false ;
114
114
} else {
115
- throw new MarionetteError ( ' An "el" ' + this . $el . selector + ' must exist in DOM' ) ;
115
+ throw new MarionetteError ( ` An "el" must exist in DOM for this region ${ this . cid } ` ) ;
116
116
}
117
117
}
118
118
return true ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ describe('region', function() {
79
79
it ( 'should throw an exception saying an "el" doesnt exist in DOM' , function ( ) {
80
80
expect ( function ( ) {
81
81
this . region . show ( new this . MyView ( ) ) ;
82
- } . bind ( this ) ) . to . throw ( 'An "el" #not-existed-region must exist in DOM' ) ;
82
+ } . bind ( this ) ) . to . throw ( 'An "el" must exist in DOM for this region ' + this . region . cid ) ;
83
83
} ) ;
84
84
85
85
it ( 'should not have a view' , function ( ) {
You can’t perform that action at this time.
0 commit comments