# Error Boundaries Error boundaries are a way to handle errors in included templates. Instead of the normal Django yellow screen of death when `DEBUG=True`, an error message will be shown instead. ```{note} Must be enabled by adding [`error_boundaries`](settings.md#error_boundaries) to the `ANGLES` settings. ``` ## Block An `error-boundary` attribute can be added to a `dj-block` to enable error boundaries. If any error occurs within that block, an error message will be displayed. ```html ``` ## Element A `dj-error-boundary` element can be used to wrap any HTML. If any error occurs within the element, an error message will be displayed. ```html ``` ### `default` A default template to render if an error occurs. This can be a string or a template path. ```html ``` ```html ```