Skip to content

fix: handle missing config file gracefully#40

Open
zicaiw625 wants to merge 1 commit intoApexOpsStudio:mainfrom
zicaiw625:fix/missing-config-friendly-error
Open

fix: handle missing config file gracefully#40
zicaiw625 wants to merge 1 commit intoApexOpsStudio:mainfrom
zicaiw625:fix/missing-config-friendly-error

Conversation

@zicaiw625
Copy link
Copy Markdown

Summary

Fixes the crash when ~/.config/task-cli/config.yaml is missing.

Changes

  • load_config() now raises a friendly FileNotFoundError message that points users to config.yaml.example
  • main() catches the missing-config case, prints the friendly message to stderr, and exits cleanly
  • adds tests for:
    • missing config behavior
    • successful config loading

Notes

This intentionally chooses the smallest safe fix: a clear error message instead of implicit config file creation.

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.

1 participant