Skip to content

Show a friendly message instead of a raw traceback when config is missing#32

Merged
nicoloesch merged 2 commits into
mainfrom
20-cli-error-message
Jul 20, 2026
Merged

Show a friendly message instead of a raw traceback when config is missing#32
nicoloesch merged 2 commits into
mainfrom
20-cli-error-message

Conversation

@nicoloesch

Copy link
Copy Markdown
Collaborator

Summary

handle_error() now catches FileNotFoundError (raised by oa_configurator when config.toml doesn't exist) and prints a pointer to omop-config configure omop_alchemy instead of letting the raw traceback reach the user.

@nicoloesch
nicoloesch requested a review from gkennos July 10, 2026 04:55
@gkennos
gkennos self-requested a review July 19, 2026 14:40
Comment thread omop_alchemy/maintenance/_cli_utils.py Outdated
@nicoloesch nicoloesch added the fix Bug fix, backwards-compatible. PATCH: x.y.z+1 label Jul 20, 2026
@nicoloesch
nicoloesch force-pushed the 20-cli-error-message branch from fe873cb to a1595b4 Compare July 20, 2026 06:47
@nicoloesch
nicoloesch requested a review from gkennos July 20, 2026 06:48
@nicoloesch
nicoloesch merged commit 515a46f into main Jul 20, 2026
3 checks passed
@nicoloesch
nicoloesch deleted the 20-cli-error-message branch July 20, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix, backwards-compatible. PATCH: x.y.z+1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

better error message when running cli before configuring

2 participants