Skip to content

Include directives to missing files do not return error #1094

Open
@mdboom

Description

@mdboom

Our project used some include directives, that due to refactoring, inadvertently pointed to the wrong location, resulting in log error messages like the following:

[ERROR] (mdbook::preprocess::links): Error updating "{{#include ../tab_header.md}}", Could not read file for link {{#include ../tab_header.md}} (...)

These errors don't result in returning an error code from the process, so we missed them in CI.

Should these (and maybe all error log messages), result in an error code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-link-preprocessorArea: Link preprocessor, #{{include}}, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions