Skip to content

[BUG] run_watch Doesn't Handle FileWatcher Errors Gracefully #194

@xyz080125

Description

@xyz080125

Project

vgrep

Description

In commands.rs line 747-749, FileWatcher::new().watch() is called directly, propagating any errors without additional context about what might have gone wrong (permissions, path issues, etc.).

Error Message

Debug Logs

System Information

OS: Any
Rust Version: 1.75+

Screenshots

No response

Steps to Reproduce

  1. Run vgrep watch on a directory without read permissions
  2. Observe error

Expected Behavior

Clear error explaining the permission issue

Actual Behavior

Generic IO error without clear indication of the cause

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issuevgrep

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions