Skip to content

Commit

Permalink
Stop printing the bulky help text for config errors
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jun 12, 2024
1 parent ea3f124 commit 9576413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const run = async () => {
const prefix = `${picocolors.red('ERROR:')}`;
console.error(`${prefix} ${knownError.message}`);
if (hasCause(knownError)) console.error('Reason:', knownError.cause.message);
if (isConfigurationError(knownError)) console.log(`\n${helpText}`);
if (isConfigurationError(knownError)) console.log('\nRun `knip --help` or visit https://knip.dev for help');
process.exit(2);
}
// We shouldn't arrive here, but not swallow either, so re-throw
Expand Down

0 comments on commit 9576413

Please sign in to comment.