Skip to content

Commit bcff155

Browse files
minor: add error message for certificate key file password without feature (#1269)
1 parent f87af8f commit bcff155

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/client/options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,13 @@ impl ConnectionString {
21562156
))
21572157
}
21582158
},
2159+
#[cfg(not(feature = "cert-key-password"))]
2160+
"tlscertificatekeyfilepassword" => {
2161+
return Err(Error::invalid_argument(
2162+
"the cert-key-password feature must be enabled to specify \
2163+
tlsCertificateKeyFilePassword in the URI",
2164+
));
2165+
}
21592166
"uuidrepresentation" => match value.to_lowercase().as_str() {
21602167
"csharplegacy" => self.uuid_representation = Some(UuidRepresentation::CSharpLegacy),
21612168
"javalegacy" => self.uuid_representation = Some(UuidRepresentation::JavaLegacy),

0 commit comments

Comments
 (0)