Skip to content

Commit 07b1de4

Browse files
committed
Report error from opener in bootstrap
On my machine, an error looks like: Finished release [optimized] target(s) in 0.29s Opening doc /git/rust/build/x86_64-unknown-linux-gnu/doc/std/index.html command 'xdg-open (internal)' did not execute successfully; exit code: 4 command stderr: gio: file:///git/rust/build/x86_64-unknown-linux-gnu/doc/std/index.html: Error when getting information for file “/git/rust/build/x86_64-unknown-linux-gnu/doc/std/index.html”: No such file or directory Build completed successfully in 0:00:08
1 parent 6a3aae8 commit 07b1de4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bootstrap/doc.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ fn open(builder: &Builder<'_>, path: impl AsRef<Path>) {
7676
}
7777

7878
let path = path.as_ref();
79-
builder.info(&format!("Opening doc {}", path.to_string_lossy()));
80-
81-
// ignore error
82-
let _ = opener::open(path);
79+
builder.info(&format!("Opening doc {}", path.display()));
80+
if let Err(err) = opener::open(path) {
81+
builder.info(&format!("{}\n", err));
82+
}
8383
}
8484

8585
// "src/libstd" -> ["src", "libstd"]

0 commit comments

Comments
 (0)