mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-20 00:54:18 +00:00
refactor(postgres): use a similar styling to mysql when adding the severity and code to error message
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user