Under the current toolbar design, if an error occurs in a debug panel or panel rendering, a generic wsgi error is generated.
I propose wrapping the invocations of various panel API methods in a try/except block. If an error is raised it is either tracked on the toolbar or the panel via a new attribute .is_panel_error or similar. it is logged at an log.ERROR level too. the html for broken panels is replaced with a 'error in the panel' message.
thoughts? this would require adding a new panel attribute or some code to track broken panels, so I wanted to discuss before trying a PR.
Under the current toolbar design, if an error occurs in a debug panel or panel rendering, a generic wsgi error is generated.
I propose wrapping the invocations of various panel API methods in a try/except block. If an error is raised it is either tracked on the toolbar or the panel via a new attribute
.is_panel_erroror similar. it is logged at an log.ERROR level too. the html for broken panels is replaced with a 'error in the panel' message.thoughts? this would require adding a new panel attribute or some code to track broken panels, so I wanted to discuss before trying a PR.