Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
daria-github committed May 15, 2024
1 parent dfdb668 commit 9e092f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function downloadAndExtract(url: string, maxMetaTagSize?: number |
const response = await fetch(url, { redirect: 'follow', signal });
// TODO: Better error handling
if (response.status >= 400) {
throw new ErrorResponse(`Request to ${url} failed`, response.status);
throw new ErrorResponse(`Request to ${url} failed with status ${response.status}`, response.status);
}

const headersToForward = extractCacheHeaders(response.headers);
Expand Down

0 comments on commit 9e092f1

Please sign in to comment.