Skip to content

fix(commands): render full stack trace when verbose#34

Merged
kojiromike merged 3 commits into
mainfrom
fix/verbose-stack-traces
May 12, 2026
Merged

fix(commands): render full stack trace when verbose#34
kojiromike merged 3 commits into
mainfrom
fix/verbose-stack-traces

Conversation

@kojiromike
Copy link
Copy Markdown
Contributor

Summary

AbstractUserCommand::execute caught \Throwable and printed only getMessage(), so operators got a one-line summary even when running with -v. Honor verbosity by additionally rendering the throwable (file, line, full trace) via Application::renderThrowable.

Closes #11

Test plan

  • Run a user:* command in a way that throws (e.g. invalid --openemr-path) without -v — only the one-line error appears.
  • Re-run with -v — full stack trace is rendered after the error message.

AbstractUserCommand::execute caught Throwable and printed only
getMessage(), so operators got a one-line summary even with -v. Honor
verbosity by additionally rendering the throwable with file, line, and
trace via Application::renderThrowable.

Closes #11

Assisted-by: Claude Code
@kojiromike kojiromike merged commit 24c9be0 into main May 12, 2026
10 checks passed
@kojiromike kojiromike deleted the fix/verbose-stack-traces branch May 12, 2026 14:15
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.

AbstractUserCommand swallows stack traces

1 participant