refactor(postgres): use a similar styling to mysql when adding the severity and code to error message

This commit is contained in:
Ryan Leckey 2021-04-16 15:52:37 -07:00
parent d04fcbb2a7
commit 23fb65dc36

View File

@ -154,7 +154,7 @@ impl PgNotice {
impl Display for PgNotice {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
write!(f, "{} [{}] {}", self.severity(), self.code(), self.message())
write!(f, "{} ({}): {}", self.severity(), self.code(), self.message())
}
}