fix(cli): typo in error for required DB URL (#3389)

This commit is contained in:
Denis Otkidach 2024-07-30 03:28:41 +03:00 committed by GitHub
parent fd4cb99fc7
commit 572e2a4ed5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,7 +265,7 @@ impl ConnectOpts {
pub fn required_db_url(&self) -> anyhow::Result<&str> { pub fn required_db_url(&self) -> anyhow::Result<&str> {
self.database_url.as_deref().ok_or_else( self.database_url.as_deref().ok_or_else(
|| anyhow::anyhow!( || anyhow::anyhow!(
"the `--database-url` option the or `DATABASE_URL` environment variable must be provided" "the `--database-url` option or the `DATABASE_URL` environment variable must be provided"
) )
) )
} }