Skip to content

cli: include GitHub issues link on panic - #3019

Open
4sapp wants to merge 1 commit into
d2lang:masterfrom
4sapp:cli/panic-issue-link
Open

4sapp wants to merge 1 commit into
d2lang:masterfrom
4sapp:cli/panic-issue-link

Conversation

@4sapp

@4sapp 4sapp commented Nov 24, 2026

Copy link
Copy Markdown

Recovers panics in d2cli.Run and prints the panic value, a link to https://github.com/d2lang/d2/issues, and the stack trace to stderr before exiting with status 2.

Added unit tests in d2cli/panic_test.go covering both panic recovery and normal error passthrough, and updated ci/release/changelogs/next.md.

Closes #69

This branch has not been deployed

No deployments
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.

cli: Add issue link upon crash

1 participant