1
Fork 0

Auto merge of #55933 - euclio:doc-panic, r=QuietMisdreavus

emit error when doc generation fails

Fixes #41813.

The diagnostic looks something like this:

```
error: couldn't generate documentation: No space left on device (os error 28)
  |
  = note: failed to create or modify "/path/to/crate/target/doc/src/lazycell"
```
This commit is contained in:
bors 2018-12-05 20:27:17 +00:00
commit 14997d56a5
4 changed files with 43 additions and 5 deletions

View file

@ -202,8 +202,8 @@ impl Impl {
#[derive(Debug)]
pub struct Error {
file: PathBuf,
error: io::Error,
pub file: PathBuf,
pub error: io::Error,
}
impl error::Error for Error {