Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure pretty traceback for error in Widget compose method #1505

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

darrenburns
Copy link
Member

@darrenburns darrenburns commented Jan 6, 2023

It now fails immediately and displays a Rich traceback.
Previously it still rendered (although incorrectly) and then displayed a plain traceback on app exit.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@willmcgugan
Copy link
Collaborator

Out of interest, where was that exception going previously?

@darrenburns
Copy link
Member Author

@willmcgugan It was difficult to follow and I only looked briefly but it looked like it was just unhandled - going back up to process_messages.

@darrenburns darrenburns merged commit a133bd8 into main Jan 6, 2023
@darrenburns darrenburns deleted the show-compose-errors branch January 6, 2023 16:28
rodrigogiraoserrao pushed a commit that referenced this pull request Jan 7, 2023
* Ensure pretty traceback for error in Widget compose method

* Fail fast and pretty tracebacks for Widget compose errors
nitzan-shaked pushed a commit to nitzan-shaked/textual that referenced this pull request Jan 10, 2023
…e#1505)

* Ensure pretty traceback for error in Widget compose method

* Fail fast and pretty tracebacks for Widget compose errors
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