File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
src/shared/hooks/BackendAPI Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,11 @@ export const createFetchFn =
4444 } ;
4545 const { backendAddress } = getClusterConfig ( ) ;
4646
47- try {
48- const response = await fetch ( backendAddress + relativeUrl , init ) ;
49- if ( response . ok ) {
50- return response ;
51- } else {
52- throw await throwHttpError ( response ) ;
53- }
54- } catch ( e ) {
55- console . error ( `Fetch failed (${ relativeUrl } ): ${ e } ` ) ;
56- throw e ;
47+ const response = await fetch ( backendAddress + relativeUrl , init ) ;
48+ if ( response . ok ) {
49+ return response ;
50+ } else {
51+ throw await throwHttpError ( response ) ;
5752 }
5853 } ;
5954
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ const useGetHook = (processDataFn) =>
6060 : ERROR_TOLERANCY ;
6161
6262 if ( errorTolerancyCounter . current > errorLimit || ! data ) {
63- console . error ( error ) ;
6463 setError ( error ) ;
6564 }
6665 }
You can’t perform that action at this time.
0 commit comments