Skip to content

Commit

Permalink
chore: tweak error type
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 12, 2021
1 parent 449d9e0 commit 9b49df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load.ts
Expand Up @@ -13,7 +13,7 @@ const loadJson = async (filepath: string) => {
await fs.promises.readFile(filepath, 'utf8')
)
return parseJson(content)
} catch (error) {
} catch (error: any) {
throw new Error(
`Failed to parse ${path.relative(process.cwd(), filepath)}: ${
error.message
Expand Down

1 comment on commit 9b49df4

@vercel
Copy link

@vercel vercel bot commented on 9b49df4 Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.