Skip to content

fix(doc): map "No such file or directory" error in read_doc()`#451

Merged
LeoMcA merged 1 commit intomainfrom
map-not-found-error
Jan 15, 2026
Merged

fix(doc): map "No such file or directory" error in read_doc()`#451
LeoMcA merged 1 commit intomainfrom
map-not-found-error

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Dec 19, 2025

Description

Updates the IO error handling logic, mapping NotFound into DocError::PageNotFound directly in read_doc().

Motivation

Improve the following error message noticed in #449:

ERROR page{file="/path/to/mdn/translated-content/files/pt-br/learn_web_development/howto/tools_and_setup/how_do_you_host_your_website_on_google_app_engine/index.md"}: rari_doc::pages::types::doc: Super doc not found for pt-BR:Learn_web_development/Howto/Tools_and_setup/How_do_you_host_your_website_on_Google_App_Engine io error: No such file or directory (os error 2) (/path/to/mdn/content/files/en-us/learn_web_development/howto/tools_and_setup/how_do_you_host_your_website_on_google_app_engine/index.md)

Additional details

Related issues and pull requests

@github-actions
Copy link
Contributor

6c2551d was deployed to: https://rari-pr451.review.mdn.allizom.net/

@LeoMcA LeoMcA merged commit c548e5c into main Jan 15, 2026
18 checks passed
@LeoMcA LeoMcA deleted the map-not-found-error branch January 15, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants