Skip to content

Commit fa0511e

Browse files
committed
correct error identifier
1 parent 6490c35 commit fa0511e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PostgreSQL/Message+Serialize/PostgreSQLMessageEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class PostgreSQLMessageEncoder {
3434
case .password(let password):
3535
identifier = .p
3636
try password.encode(to: encoder)
37-
default: throw PostgreSQLError(identifier: "messageEncoder", reason: "Unsupported encodable type: \(type(of: message))")
37+
default: throw PostgreSQLError(identifier: "encoder", reason: "Unsupported encodable type: \(type(of: message))")
3838
}
3939
encoder.updateSize()
4040
if let prefix = identifier {

0 commit comments

Comments
 (0)