Skip to content

Commit

Permalink
Simplify ESLint error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanelian committed Apr 8, 2021
1 parent 7a911a5 commit 342c74e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bin/importers/importESLintFrom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/importers/importESLintFrom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ export async function importESLintFrom(dir: string, indexTsPath: string): Promis
linter: linter,
version: ESLint.version
};
} catch (error) {
console.log(error);
} catch (err) {
if (err instanceof Error) {
console.log(err.message);
}
return undefined;
}
}

0 comments on commit 342c74e

Please sign in to comment.