Skip to content

Commit

Permalink
updat error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Jan 10, 2023
1 parent 3be6913 commit 395a010
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/[event]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ const getXWS = async (url: string) => {
try {
xws = await res.json();
} catch {
console.error(
'Error',
url.replace(
'https://yasb.app',
'https://squad2xws.objectivecat.com/yasb/xws'
)
);
throw new Error(`Failed to parse JSON for ${url}...`);
}

return xws;
Expand Down

0 comments on commit 395a010

Please sign in to comment.