Skip to content

Better error reporting when publishing #938

Open

Description

@Andersama

Currently if a page fails to be generated while publishing the whole process fails silently. Instead, display some form of checklist of successfully generated pages vs ones with errors. Also works as visual feedback that there is something happening when publishing.

Edit: The main benefit being it also helps point users to which pages are preventing publishing from occurring.

Activity

  1. Andersama commented on Feb 15, 2026

    @Andersama
    Author

    Going through the codebase to make sense of how it works. I think compile_component_head and block_html and a couple other functions appear to be discarding errors. There's a lot of try catch error handling in the code, but I think the better approach here is to collect errors into your own list, and then when "compilation" completes check that there aren't any*, but also if there are display them to the user.

    If preview / download is selected that same list could be made into a popup to display which pages failed/rendered ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions