Skip to content

Print stack trace for all unknown errors#219

Merged
Ostrzyciel merged 1 commit intomainfrom
piotr/stack-trace-on-unknown
Sep 14, 2025
Merged

Print stack trace for all unknown errors#219
Ostrzyciel merged 1 commit intomainfrom
piotr/stack-trace-on-unknown

Conversation

@Ostrzyciel
Copy link
Member

@Ostrzyciel Ostrzyciel commented Sep 14, 2025

While debugging #217 I noticed that unknown errors are reported by default with a rather unhelpful message:

$ jelly-cli rdf to-jelly test.xml 
Unknown error
Run with --debug to see the complete stack trace.

It would make sense to always print the long stack trace for unknown errors, as otherwise, there is no way to see what happened. Hiding exception details makes sense only for known errors, for which we have helpful user messages.

I changed the ErrorHandler behavior to fix that.

@Ostrzyciel Ostrzyciel enabled auto-merge (squash) September 14, 2025 10:38
Copy link
Collaborator

@Karolina-Bogacka Karolina-Bogacka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I agree with this perspective

@Ostrzyciel Ostrzyciel merged commit c6aff42 into main Sep 14, 2025
7 checks passed
@Ostrzyciel Ostrzyciel deleted the piotr/stack-trace-on-unknown branch September 14, 2025 11:00
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.

2 participants

Comments