mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	More error context when failing to invoke the rust toolchain
This commit is contained in:
		
							parent
							
								
									cba39f8553
								
							
						
					
					
						commit
						18b24f60d0
					
				@ -167,7 +167,8 @@ impl ProjectWorkspace {
 | 
			
		||||
                cmd.envs(&config.extra_env);
 | 
			
		||||
                cmd.arg("--version").current_dir(current_dir);
 | 
			
		||||
                cmd
 | 
			
		||||
            })?;
 | 
			
		||||
            })
 | 
			
		||||
            .with_context(|| format!("Failed to query rust toolchain version at {current_dir}, is your toolchain setup correctly?"))?;
 | 
			
		||||
            anyhow::Ok(
 | 
			
		||||
                cargo_version
 | 
			
		||||
                    .get(prefix.len()..)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user