Skip to content

Commit

Permalink
Log error with fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Jan 18, 2024
1 parent 68c2149 commit d3fad19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/routes/img.$slug/utils.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ export function getDataFromParams(
}

export async function getFont(fontPath: string) {
let res = await fetch(fontPath);

try {
let res = await fetch(fontPath);
return res.arrayBuffer();
} catch (err) {
console.log(err);
Expand Down

0 comments on commit d3fad19

Please sign in to comment.