File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ class BlazeRenderer {
156
156
if ( ! _layout ) {
157
157
this . old . materialized = true ;
158
158
this . isRendering = false ;
159
- throw new Meteor . Error ( 404 , 'No such layout template: ' + layout ) ;
159
+ const error = new Meteor . Error ( 404 , `No such layout template: ${ layout } ` ) ;
160
+ callback ( error ) ;
161
+ throw error ;
160
162
}
161
163
162
164
const current = this . newState ( layout , template ) ;
@@ -169,7 +171,9 @@ class BlazeRenderer {
169
171
if ( ! _template ) {
170
172
this . old . materialized = true ;
171
173
this . isRendering = false ;
172
- throw new Meteor . Error ( 404 , 'No such template: ' + template ) ;
174
+ const error = new Meteor . Error ( 404 , `No such template: ${ template } ` ) ;
175
+ current . callback ( error ) ;
176
+ throw error ;
173
177
}
174
178
175
179
if ( forceReRender || this . old . template . name !== template ) {
You canβt perform that action at this time.
0 commit comments