Update auth.rs (#3349)

Update SNI error message. Users now specify the endpoint ID when making
a connection to Neon. This should be reflected in the error message.
This commit is contained in:
danieltprice
2023-01-16 12:32:00 -04:00
committed by GitHub
parent a8a9bee602
commit 424fd0bd63

View File

@@ -42,9 +42,9 @@ pub enum AuthErrorImpl {
MalformedPassword(&'static str),
#[error(
"Project ID is not specified. \
"Endpoint ID is not specified. \
Either please upgrade the postgres client library (libpq) for SNI support \
or pass the project ID (first part of the domain name) as a parameter: '?options=project%3D<project-id>'. \
or pass the endpoint ID (first part of the domain name) as a parameter: '?options=project%3D<endpoint-id>'. \
See more at https://neon.tech/sni"
)]
MissingProjectName,