feat(bin): show db path when confirming the drop (#4309)

This commit is contained in:
Alexey Shekhirin
2023-08-22 11:00:22 +01:00
committed by GitHub
parent fe685143f0
commit b296c6bb92

View File

@@ -188,7 +188,7 @@ impl Command {
Subcommands::Drop { force } => {
if !force {
// Ask for confirmation
print!("Are you sure you want to drop the database? This cannot be undone. (y/N): ");
print!("Are you sure you want to drop the database at {db_path:?}? This cannot be undone. (y/N): ");
// Flush the buffer to ensure the message is printed immediately
io::stdout().flush().unwrap();