File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ export async function getUserOpUsage(
7878 } ) ;
7979
8080 if ( res ?. status !== 200 ) {
81+ const reason = await res ?. text ( ) ;
8182 console . error (
82- `Failed to fetch user ops usage: ${ res ?. status } - ${ res . statusText } ` ,
83+ `Failed to fetch user ops usage: ${ res ?. status } - ${ res . statusText } - ${ reason } ` ,
8384 ) ;
8485 return [ ] ;
8586 }
@@ -101,8 +102,9 @@ export async function getClientTransactions(
101102 ) ;
102103
103104 if ( res ?. status !== 200 ) {
105+ const reason = await res ?. text ( ) ;
104106 console . error (
105- `Failed to fetch client transactions stats: ${ res ?. status } - ${ res . statusText } ` ,
107+ `Failed to fetch client transactions stats: ${ res ?. status } - ${ res . statusText } - ${ reason } ` ,
106108 ) ;
107109 return [ ] ;
108110 }
You can’t perform that action at this time.
0 commit comments