Skip to content

Commit

Permalink
More detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed Jan 13, 2025
1 parent 4af50ef commit 7811e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/utils/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export const inspectDataset = async (url) => {
response = await fetchMetadata(sanitized)
} catch (e) {
// Show generic error message when request fails before response can be inspected.
// Do not show URL for details because request is ultimately proxied via /api/metadata route.
throw new Error(
'A network error occurred. This could be a CORS issue or a dropped internet connection.'
'A network error occurred while fetching metadata. This could be a CORS issue, a dropped internet connection, or another network problem.'
)
}

Expand Down

0 comments on commit 7811e61

Please sign in to comment.