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 std::process::Command;
|
||||||
use tempfile::Builder as TempFileBuilder;
|
use tempfile::Builder as TempFileBuilder;
|
||||||
use topological_sort::TopologicalSort;
|
use topological_sort::TopologicalSort;
|
||||||
use tracing::{debug, error, info, trace, warn};
|
use tracing::{debug, info, trace, warn};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
@ -324,8 +324,8 @@ impl MDBook {
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
failed = true;
|
failed = true;
|
||||||
error!(
|
eprintln!(
|
||||||
"rustdoc returned an error:\n\
|
"ERROR rustdoc returned an error:\n\
|
||||||
\n--- stdout\n{}\n--- stderr\n{}",
|
\n--- stdout\n{}\n--- stderr\n{}",
|
||||||
String::from_utf8_lossy(&output.stdout),
|
String::from_utf8_lossy(&output.stdout),
|
||||||
String::from_utf8_lossy(&output.stderr)
|
String::from_utf8_lossy(&output.stderr)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue