Merge pull request #2981 from ehuss/fix-rustdoc-color
Fix color for rustdoc error messages
This commit is contained in:
commit
f857ab294c
1 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ use std::path::{Path, PathBuf};
|
|||
use std::process::Command;
|
||||
use tempfile::Builder as TempFileBuilder;
|
||||
use topological_sort::TopologicalSort;
|
||||
use tracing::{debug, error, info, trace, warn};
|
||||
use tracing::{debug, info, trace, warn};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
@ -324,8 +324,8 @@ impl MDBook {
|
|||
|
||||
if !output.status.success() {
|
||||
failed = true;
|
||||
error!(
|
||||
"rustdoc returned an error:\n\
|
||||
eprintln!(
|
||||
"ERROR rustdoc returned an error:\n\
|
||||
\n--- stdout\n{}\n--- stderr\n{}",
|
||||
String::from_utf8_lossy(&output.stdout),
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue