Skip to content

shopping-list on a directory with only .menu files errors misleadingly #723

Closed

Description

@drawmeanelephant

Suggested labels: bug, area: shopping-list


Discovery audit finding L12 (low) — cooklang/cookcli @ 7c2f48b (v0.38.1), audited 2026-10-12. Verified by subagent.

Summary

cook sl <dir> containing only .menu files errors misleadingly.

Where

src/shopping_list.rs:226-258 (directory expansion keeps only *.cook).

Repro

cook sl <dir> where <dir> contains only .menu files → Error: Recipe not found: <dir>.

Expected

A clear message (either the menus are included, or the error says the directory contains no recipes / only menus).

Actual

"Recipe not found" for a directory that exists and has content.

Acceptance criteria (red → green)

Green when the repro either produces a shopping list from the menus or errors with an accurate message (not "Recipe not found").

Verification

Verified by subagent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions