Skip to content

fix(cli): improve error for nonexistent import paths#23

Merged
luca-ctx merged 2 commits into
ctxrs:mainfrom
atharva-patill:fix/nonexistent-import-path
Jul 2, 2026
Merged

fix(cli): improve error for nonexistent import paths#23
luca-ctx merged 2 commits into
ctxrs:mainfrom
atharva-patill:fix/nonexistent-import-path

Conversation

@atharva-patill

Copy link
Copy Markdown
Contributor

Summary

When ctx import --path is given a path that doesn't exist, the command currently falls through to the filesystem scan and returns a generic OS error.

This adds an early check for explicit import paths and returns a clearer error message instead. It also adds an integration test to cover this behavior.

Before

Screenshot 2026-07-02 at 10 28 58 AM

After

Screenshot 2026-07-02 at 12 29 00 PM

Validation

  • Added an integration test for ctx import --path with a nonexistent path
  • New test passes

@luca-ctx luca-ctx merged commit 9b5e5b2 into ctxrs:main Jul 2, 2026
@luca-ctx

luca-ctx commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@Atharvapatil2005 Thanks so much for the bugfix!

@atharva-patill

Copy link
Copy Markdown
Contributor Author

@Atharvapatil2005 Thanks so much for the bugfix!

@luca-ctx You're Welcome! Glad I could help.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants