Skip to content

Commit

Permalink
feat: fetchWithRetry 에러 메시지 상세화
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Mar 11, 2024
1 parent ea04f60 commit dc3cd52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const fetchWithRetry = async (
if (e instanceof NetworkError) throw e;
if (remain === 0) throw e;

console.error(`fetchWithRetry: ${e}`);
console.error(`fetchWithRetry: ${e} ${url} ${method}`);
return await fetchWithRetry(url, method, init, remain - 1);
}
};
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.14.5",
"@mui/x-date-pickers": "^6.11.2",
"@types/node": "20.4.0",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.19",
"autolinker": "^4.0.0",
"autoprefixer": "10.4.14",
"dayjs": "^1.11.9",
"eslint-config-next": "^14.1.0",
"next": "^14.1.0",
"next-intl": "^3.7.0",
"postcss": "8.4.24",
Expand All @@ -33,10 +29,14 @@
"tailwindcss": "3.3.2"
},
"devDependencies": {
"@types/node": "20.4.0",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.19",
"@svgr/webpack": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.1.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down

0 comments on commit dc3cd52

Please sign in to comment.