Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context when rustdoc command is not found #2545

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Feb 3, 2025

Before, the output is rather confusing:

2025-02-03 10:01:14 [INFO] (mdbook::book): Testing chapter 'Chapter 1': "chapter_1.md"
2025-02-03 10:01:14 [ERROR] (mdbook::utils): Error: No such file or directory (os error 2)

after it looks something like:

2025-02-03 11:01:42 [INFO] (mdbook::book): Testing chapter 'Chapter 1': "chapter_1.md"
2025-02-03 11:01:42 [ERROR] (mdbook::utils): Error: failed to execute `rustdoc`
2025-02-03 11:01:42 [ERROR] (mdbook::utils): 	Caused By: No such file or directory (os error 2)

Fixes #2544

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Feb 3, 2025
@ehuss ehuss enabled auto-merge February 3, 2025 19:06
@ehuss ehuss added this pull request to the merge queue Feb 3, 2025
Merged via the queue into rust-lang:master with commit 542b6fe Feb 3, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'mdbook test' fails in GitLab CI/CD
2 participants