From 97293852573425aba261ef95d4255b37afbdce82 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Mon, 18 May 2020 14:30:25 -0700 Subject: [PATCH] sqlx_cli::db::run_drop: actually print the database name in confirm --- sqlx-cli/src/db.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sqlx-cli/src/db.rs b/sqlx-cli/src/db.rs index aaa1fc7a..4ff30c3a 100644 --- a/sqlx-cli/src/db.rs +++ b/sqlx-cli/src/db.rs @@ -39,7 +39,10 @@ pub async fn run_drop() -> anyhow::Result<()> { if db_exists { if !Confirmation::new() - .with_text("\nAre you sure you want to drop the database: {}?") + .with_text(&format!( + "\nAre you sure you want to drop the database: {}?", + db_name + )) .default(false) .interact()? {