aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-09 10:25:21 +0000
committerAleksey Kladov <[email protected]>2020-01-09 10:25:44 +0000
commit4223760a7ba5879e11dcf93db0884367c07244d7 (patch)
treeda4d022253d395d7306e7ba5cb5796073404b0a8 /crates
parent928ecd069a508845ef4dbfd1bc1b9bf975d76e5b (diff)
Better error message
closes #2775
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_project_model/src/sysroot.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs
index 10ca391b6..34d066b1e 100644
--- a/crates/ra_project_model/src/sysroot.rs
+++ b/crates/ra_project_model/src/sysroot.rs
@@ -53,9 +53,10 @@ impl Sysroot {
53 if !src.exists() { 53 if !src.exists() {
54 Err(format!( 54 Err(format!(
55 "can't load standard library from sysroot\n\ 55 "can't load standard library from sysroot\n\
56 {:?}\n\ 56 {}\n\
57 (discovered via `rustc --print sysroot`)\n\
57 try running `rustup component add rust-src` or set `RUST_SRC_PATH`", 58 try running `rustup component add rust-src` or set `RUST_SRC_PATH`",
58 src, 59 src.display(),
59 ))?; 60 ))?;
60 } 61 }
61 62