Skip to content

Commit

Permalink
error code 1 in ripgrep just means no file found
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindresse committed Sep 30, 2024
1 parent d0f740d commit 98259f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/wrappedFindFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ async function ripgrep (glob: string, rootFolder: string): Promise<string[]> {
.map((path) => path.trim())
.filter((path) => !!path) // ensure empty strings are deleted from answer
resolve(result)
} else if (code === 1) {
resolve([])
} else {
reject(new Error(`code ${code}: ${stderr}`))
}
Expand Down

0 comments on commit 98259f9

Please sign in to comment.