Skip to content

Commit

Permalink
fix: miss error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Jun 19, 2024
1 parent aee587b commit 5fba0e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export async function getFSHandle<
})) as RT;
}
} catch (err) {
return null as RT;
if ((err as Error).name === 'NotFoundError') {
return null as RT;
}
throw err;
}
}

Expand Down

0 comments on commit 5fba0e6

Please sign in to comment.