From 23fb65dc364775f372b5e69bbebc4fdfd6532f2f Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Fri, 16 Apr 2021 15:52:37 -0700 Subject: [PATCH] refactor(postgres): use a similar styling to mysql when adding the severity and code to error message --- sqlx-postgres/src/protocol/backend/notice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-postgres/src/protocol/backend/notice.rs b/sqlx-postgres/src/protocol/backend/notice.rs index f469b78c..51007df1 100644 --- a/sqlx-postgres/src/protocol/backend/notice.rs +++ b/sqlx-postgres/src/protocol/backend/notice.rs @@ -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()) } }