Skip to content

Commit

Permalink
fix saying pantry not found when it’s fine
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Nov 22, 2022
1 parent 1c25ba4 commit 8416833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ All you need is `tea`.
 


# tea/cli 0.13.9
# tea/cli 0.13.10

Open source is a treasure trove—yet those chests are sealed with gnarly locks.
tea is the key:
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePantry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ function coerceNumber(input: any) {

function entry({ project }: { project: string }): Entry {
for (const prefix of pantry_paths()) {
if (!prefix.exists()) throw new TeaError('not-found: pantry', { path: prefix })
const dir = prefix.join(project)
if (!dir.exists()) throw new TeaError('not-found: pantry', { path: prefix })
const filename = dir.join("package.yml")
if (!filename.exists()) continue
const yml = async () => {
Expand Down

0 comments on commit 8416833

Please sign in to comment.