Skip to content

broken link errors don't show where the broken links are #1892

Open
@Be-ing

Description

@Be-ing

Running mdbook build when there is a broken link outputs an error like:

2022-09-12 13:37:18 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../../../examples/qml_features/src/data_struct_properties.rs:book_macro_code}}", Could not read file for link {{#include ../../../examples/qml_features/src/data_struct_properties.rs:book_macro_code}} (/home/be/sw/cxx-qt/book/src/qobject/../../../examples/qml_features/src/data_struct_properties.rs)
2022-09-12 13:37:18 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)

It would be helpful to output the file name and line number where the broken link is.

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