Skip to content

Commit 6254616

Browse files
Merge pull request #21804 from Wilfred/improve_proc_macro_srv_messages
fix: Clarify error messages when proc-macro-srv changes working directory
2 parents 8ed3cca + 535783c commit 6254616

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/proc-macro-srv/src

crates/proc-macro-srv/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl<'snap> EnvChange<'snap> {
328328
let prev_working_dir = std::env::current_dir().ok();
329329
if let Err(err) = std::env::set_current_dir(dir) {
330330
eprintln!(
331-
"Failed to set the current working dir to {}. Error: {err:?}",
331+
"Failed to change the current working dir to {}. Error: {err:?}",
332332
dir.display()
333333
)
334334
}
@@ -370,7 +370,7 @@ impl Drop for EnvChange<'_> {
370370
&& let Err(err) = std::env::set_current_dir(dir)
371371
{
372372
eprintln!(
373-
"Failed to set the current working dir to {}. Error: {:?}",
373+
"Failed to change the current working dir back to {}. Error: {:?}",
374374
dir.display(),
375375
err
376376
)

0 commit comments

Comments
 (0)