Skip to content

Commit f857ab2

Browse files
authored
Merge pull request #2981 from ehuss/fix-rustdoc-color
Fix color for rustdoc error messages
2 parents 938a912 + 23724b0 commit f857ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/mdbook-driver/src/mdbook.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::path::{Path, PathBuf};
2020
use std::process::Command;
2121
use tempfile::Builder as TempFileBuilder;
2222
use topological_sort::TopologicalSort;
23-
use tracing::{debug, error, info, trace, warn};
23+
use tracing::{debug, info, trace, warn};
2424

2525
#[cfg(test)]
2626
mod tests;
@@ -324,8 +324,8 @@ impl MDBook {
324324

325325
if !output.status.success() {
326326
failed = true;
327-
error!(
328-
"rustdoc returned an error:\n\
327+
eprintln!(
328+
"ERROR rustdoc returned an error:\n\
329329
\n--- stdout\n{}\n--- stderr\n{}",
330330
String::from_utf8_lossy(&output.stdout),
331331
String::from_utf8_lossy(&output.stderr)

0 commit comments

Comments
 (0)