Skip to content

Comments

Render ProgrammingError, CompilationError and ParserError alway user-friendly#266

Open
mlell wants to merge 1 commit intobeancount:masterfrom
mlell:dev_no-stacktrace
Open

Render ProgrammingError, CompilationError and ParserError alway user-friendly#266
mlell wants to merge 1 commit intobeancount:masterfrom
mlell:dev_no-stacktrace

Conversation

@mlell
Copy link

@mlell mlell commented Dec 9, 2025

This should fix #261.

Change render_exception() so that it does not show a stack trace if no AST node information is provided to CompilationError.

Also, do not print a stack trace for ProgrammingErrors, as these are also errors committed by the user and therefore should have a nice error message without a stack trace.

…friendly

Change `render_exception()` so that it does not show a stack trace if no
AST node information is provided to CompilationError.

Also, do not print a stack trace for `ProgrammingError`s, as these are
also errors committed by the user and therefore should have a nice error
message without a stack trace.
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.

Give better error: all non-aggregates must be covered by GROUP-BY clause

1 participant