rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust

Home Page:https://rust-lang.github.io/mdBook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exit code 0 with build errors

jorgecarleitao opened this issue · comments

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?

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

It seems that it silences errors from Rust snippets?

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