File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export async function fetchNode({
25
25
) ;
26
26
27
27
return JSON . parse ( fileContent ) ;
28
- } catch {
28
+ } catch ( error_ ) {
29
+ console . error ( error_ ) ;
29
30
notFound ( ) ;
30
31
}
31
32
}
@@ -38,7 +39,8 @@ export async function fetchNode({
38
39
) ;
39
40
40
41
return await fileContent . json ( ) ;
41
- } catch {
42
+ } catch ( error_ ) {
43
+ console . error ( error_ ) ;
42
44
notFound ( ) ;
43
45
}
44
46
}
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export async function fetchSitemap({
18
18
) ;
19
19
20
20
return JSON . parse ( fileContent ) ;
21
- } catch {
21
+ } catch ( error_ ) {
22
+ console . error ( error_ ) ;
22
23
notFound ( ) ;
23
24
}
24
25
}
@@ -31,7 +32,8 @@ export async function fetchSitemap({
31
32
) ;
32
33
33
34
return await fileContent . json ( ) ;
34
- } catch {
35
+ } catch ( error_ ) {
36
+ console . error ( error_ ) ;
35
37
notFound ( ) ;
36
38
}
37
39
}
You can’t perform that action at this time.
0 commit comments