Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve the error about throw new error #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ColinRgm
Copy link
Collaborator

Closes: #205

@ColinRgm ColinRgm assigned ColinRgm and fuzoh and unassigned ColinRgm and fuzoh Dec 11, 2024
@ColinRgm ColinRgm requested a review from fuzoh December 11, 2024 09:44
@ColinRgm ColinRgm marked this pull request as ready for review December 11, 2024 09:44
@@ -39,7 +39,7 @@ export const fetchWithAuth = async (url: string) => {
if (response.status === 401) {
window.location.href = "/login";
}
throw new Error(`HTTP error! Status: ${response.status}`);
new Error(`HTTP error! Status: ${response.status}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you just don't show the error anymore... But the error is not resolved... I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: HTTP error! Status: 400
2 participants