mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-15 07:45:50 +02:00
refactor: clear a few ESLint warnings (#5808)
* refactor: clear a few ESLint warnings Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Fix
This commit is contained in:
parent
68c970175a
commit
4b2152a964
9 changed files with 35 additions and 26 deletions
|
@ -181,9 +181,9 @@ export async function parseMarkdownFile(
|
|||
const markdownString = await fs.readFile(source, 'utf-8');
|
||||
try {
|
||||
return parseMarkdownString(markdownString, options);
|
||||
} catch (e: any) {
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Error while parsing Markdown file ${source}: "${e.message}".`,
|
||||
`Error while parsing Markdown file ${source}: "${(e as Error).message}".`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue