Return a user facing error for bad database URL in ME
This is already tested in connection_string_problems_give_a_nice_error()
for top-level errors. It is unclear whether we ever hit the case that
changed here.
Introspection engine is already fine.
closes
@@ -167,7 +167,9 @@ impl ConnectorError {
/// Construct an UrlParseError.
pub fn url_parse_error(err: impl Display) -> Self {
- Self::from_msg(format!("{} in database URL", err))
+ Self::user_facing(user_facing_errors::common::InvalidDatabaseString {
+ details: err.to_string(),
+ })
}
}
