File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/qwik-router/src/ssg Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ async function workerRender(
152
152
} ) ;
153
153
}
154
154
} catch ( e : any ) {
155
+ console . error ( 'Error during stream start' , staticRoute . pathname , e ) ;
155
156
routeWriter = null ;
156
157
result . error = {
157
158
message : String ( e ) ,
@@ -166,6 +167,7 @@ async function workerRender(
166
167
routeWriter . write ( Buffer . from ( chunk . buffer ) ) ;
167
168
}
168
169
} catch ( e : any ) {
170
+ console . error ( 'Error during stream write' , staticRoute . pathname , e ) ;
169
171
routeWriter = null ;
170
172
result . error = {
171
173
message : String ( e ) ,
@@ -219,6 +221,7 @@ async function workerRender(
219
221
await Promise . all ( writePromises ) ;
220
222
}
221
223
} catch ( e : any ) {
224
+ console . error ( 'Error during stream close' , staticRoute . pathname , e ) ;
222
225
routeWriter = null ;
223
226
result . error = {
224
227
message : String ( e ) ,
@@ -244,6 +247,7 @@ async function workerRender(
244
247
} )
245
248
. then ( ( e ) => {
246
249
if ( e !== undefined ) {
250
+ console . error ( 'Error during request handling' , staticRoute . pathname , e ) ;
247
251
if ( e instanceof Error ) {
248
252
result . error = {
249
253
message : e . message ,
@@ -264,6 +268,7 @@ async function workerRender(
264
268
265
269
pendingPromises . add ( promise ) ;
266
270
} catch ( e : any ) {
271
+ console . error ( 'Error during render' , staticRoute . pathname , e ) ;
267
272
if ( e instanceof Error ) {
268
273
result . error = {
269
274
message : e . message ,
You can’t perform that action at this time.
0 commit comments