Skip to content

Commit

Permalink
fix: update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Chieffo2021 committed Dec 15, 2021
1 parent bdebb25 commit 3b71ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast-parse/astParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function astParseRoot (rootDir: string, config: Config): Promise<As
} catch (e) {
if (extension === '.js') {
console.warn(
'\n\nFailed to parse source for import analysis because the content contains invalid JS syntax. ' +
'\n\nFailed to parse .js file because the content contains invalid JS syntax. ' +
'If you are using JSX, make sure to name the file with the .jsx or .tsx extension.'
)
}
Expand Down Expand Up @@ -133,7 +133,7 @@ export async function astParseRoot (rootDir: string, config: Config): Promise<As
} catch (e) {
if (extension === '.js') {
console.warn(
'\nFailed to parse source for import analysis because the content contains invalid JS syntax. ' +
'\nFailed to parse .js file because the content contains invalid JS syntax. ' +
'If you are using JSX, make sure to name the file with the .jsx or .tsx extension.'
)
}
Expand Down

0 comments on commit 3b71ea1

Please sign in to comment.