Skip to content

feat: add global exception handling - #152

Draft
jovnc wants to merge 1 commit into
mainfrom
jovnc/global_exception_handler
Draft

feat: add global exception handling#152
jovnc wants to merge 1 commit into
mainfrom
jovnc/global_exception_handler

Conversation

@jovnc

@jovnc jovnc commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Overview

Hide unexpected exception stack traces from users.

  • Catch unexpected exceptions at CLI startup and in the REPL so users see a short ERROR line instead of a Python traceback
  • Log the full stack to .gitmastery/gitmastery.log when a project root exists
  • All other expected errors remain unchanged

Test Plan

  • Terminal shows one ERROR line (no traceback), exit code 1, on unexpected error
  • REPL should not exit the session on unexpecteed error
  • Confirm .gitmastery/gitmastery.log has the traceback if inside gitmastery folder

No e2e test is needed, not part of critical path to test.

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