Skip to content

Commit 61f6e3e

Browse files
committed
Add newline before DETAIL and HINT
1 parent ce7ce31 commit 61f6e3e

File tree

1 file changed

+2
-2
lines changed
  • tokio-postgres/src/error

1 file changed

+2
-2
lines changed

tokio-postgres/src/error/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ impl fmt::Display for DbError {
311311
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
312312
write!(fmt, "{}: {}", self.severity, self.message)?;
313313
if let Some(detail) = &self.detail {
314-
write!(fmt, "DETAIL: {}", detail)?;
314+
write!(fmt, "\nDETAIL: {}", detail)?;
315315
}
316316
if let Some(hint) = &self.hint {
317-
write!(fmt, "HINT: {}", hint)?;
317+
write!(fmt, "\nHINT: {}", hint)?;
318318
}
319319
Ok(())
320320
}

0 commit comments

Comments
 (0)