We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Display for Status
1 parent d02ee2d commit f4b46e5Copy full SHA for f4b46e5
tonic/src/status.rs
@@ -748,10 +748,10 @@ impl From<std::io::Error> for Status {
748
749
impl fmt::Display for Status {
750
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
751
- write!(f, "status: '{}'", self.code())?;
+ write!(f, "code: '{}'", self.code())?;
752
753
if !self.message().is_empty() {
754
- write!(f, ", self: {:?}", self.message())?;
+ write!(f, ", message: {:?}", self.message())?;
755
}
756
// We intentionally omit `self.details` since it's binary data, not fit for human eyes.
757
if !self.metadata().is_empty() {
0 commit comments