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 useful messages when command line preprocessor fails #1526

Merged
merged 1 commit into from
May 21, 2021

Conversation

apatniv
Copy link
Contributor

@apatniv apatniv commented May 8, 2021

Error messages before and after the changes

Before

2021-05-05 18:48:39 [INFO] (mdbook::book): Book building has started
thread 'main' panicked at 'nn', src/main.rs:53:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
2021-05-05 18:48:39 [ERROR] (mdbook::utils): Error: The preprocessor exited unsuccessfully

2021-05-05 18:50:53 [INFO] (mdbook::book): Book building has started
2021-05-05 18:50:53 [ERROR] (mdbook::utils): Error: Unable to parse the preprocessed book
2021-05-05 18:50:53 [ERROR] (mdbook::utils): Caused By: expected value at line 1 column 1

After

2021-05-08 12:44:54 [INFO] (mdbook::book): Book building has started
thread 'main' panicked at 'ddd', src/main.rs:50:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
2021-05-08 12:44:54 [ERROR] (mdbook::utils): Error: The "cat" preprocessor exited unsuccessfully with exit code: 101 status

2021-05-05 18:53:36 [INFO] (mdbook::book): Book building has started
2021-05-05 18:53:36 [ERROR] (mdbook::utils): Error: Unable to parse the preprocessed book from "cat" processor
2021-05-05 18:53:36 [ERROR] (mdbook::utils): Caused By: expected value at line 1 column 1

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss merged commit 7e7e779 into rust-lang:master May 21, 2021
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