Skip to content

Commit

Permalink
Error when no files are found to analyze (#124)
Browse files Browse the repository at this point in the history
tscpp authored Jun 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7627440 commit c129ca3
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-rockets-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@knuckles/cli": patch
---

Error when no matching files are found.
4 changes: 4 additions & 0 deletions packages/cli/src/commands/analyze/command.ts
Original file line number Diff line number Diff line change
@@ -124,6 +124,10 @@ export default command({
});
logger.debug("Files:", files);

if (files.length === 0) {
logger.error("No matching files found.");
}

for (const fileName of files) {
// Analyze file
logger.debug("File: " + fileName);

0 comments on commit c129ca3

Please sign in to comment.