We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af36fbf commit 4e628a5Copy full SHA for 4e628a5
src/tools/rustdoc-gui-test/src/main.rs
@@ -14,10 +14,16 @@ fn get_browser_ui_test_version_inner(npm: &Path, global: bool) -> Option<String>
14
if global {
15
command.arg("--global");
16
}
17
- let lines = command
18
- .output()
19
- .map(|output| String::from_utf8_lossy(&output.stdout).into_owned())
20
- .unwrap_or(String::new());
+ let lines = match command.output() {
+ Ok(output) => String::from_utf8_lossy(&output.stdout).into_owned(),
+ Err(e) => {
+ eprintln!(
21
+ "path to npm can be wrong, provided path: {npm:?}. Try to set npm path \
22
+ in config.toml in [build.npm]",
23
+ );
24
+ panic!("{:?}", e)
25
+ }
26
+ };
27
lines
28
.lines()
29
.find_map(|l| l.rsplit(':').next()?.strip_prefix("browser-ui-test@"))
0 commit comments