Improve logging of prettier errors (#32665)

In particular, seems like the error message and the message sent to
prettier were mixed up before

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-06-13 01:26:06 -06:00 committed by GitHub
parent bc68455320
commit 83cd1d2545
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View file

@ -452,14 +452,13 @@ impl Prettier {
},
})
})?
.context("prettier params calculation")?;
.context("building prettier request")?;
let response = local
.server
.request::<Format>(params)
.await
.into_response()
.context("prettier format")?;
.into_response()?;
let diff_task = buffer.update(cx, |buffer, cx| buffer.diff(response.text, cx))?;
Ok(diff_task.await)
}