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

Exit code 0 with build errors #1890

Closed
jorgecarleitao opened this issue Sep 12, 2022 · 4 comments
Closed

Exit code 0 with build errors #1890

jorgecarleitao opened this issue Sep 12, 2022 · 4 comments

Comments

@jorgecarleitao
Copy link

The command mdbook build returns exit code 0 when there are errors. This hides failed builds in CI builds (among others).

Could it make sense to exit non-zero on builds with errors, so that e.g. - run: mdbook build on CI fails?

@ehuss
Copy link
Contributor

ehuss commented Sep 12, 2022

Can you share the output of the error message? mdbook build should usually return a nonzero exit code.

@jorgecarleitao
Copy link
Author

@jorgecarleitao
Copy link
Author

It seems that it silences errors from Rust snippets?

@ehuss
Copy link
Contributor

ehuss commented Sep 22, 2022

Ah, I see. I believe this is a duplicate of #1094, so closing in favor of that.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2022
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

No branches or pull requests

2 participants