Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #21804 from Wilfred/improve_proc_macro_srv_messages
fix: Clarify error messages when proc-macro-srv changes working directory
Chayim Refael Friedman 2 months ago
parent 8ed3cca · parent 535783c · commit 6254616
-rw-r--r--crates/proc-macro-srv/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc-macro-srv/src/lib.rs b/crates/proc-macro-srv/src/lib.rs
index 734cb4ecc1..0bdc379cb6 100644
--- a/crates/proc-macro-srv/src/lib.rs
+++ b/crates/proc-macro-srv/src/lib.rs
@@ -328,7 +328,7 @@ impl<'snap> EnvChange<'snap> {
let prev_working_dir = std::env::current_dir().ok();
if let Err(err) = std::env::set_current_dir(dir) {
eprintln!(
- "Failed to set the current working dir to {}. Error: {err:?}",
+ "Failed to change the current working dir to {}. Error: {err:?}",
dir.display()
)
}
@@ -370,7 +370,7 @@ impl Drop for EnvChange<'_> {
&& let Err(err) = std::env::set_current_dir(dir)
{
eprintln!(
- "Failed to set the current working dir to {}. Error: {:?}",
+ "Failed to change the current working dir back to {}. Error: {:?}",
dir.display(),
err
)