Print non-export output on stderr

This commit is contained in:
Joscha 2023-02-12 00:55:44 +01:00
parent ca10ca277b
commit 84279d6800
7 changed files with 17 additions and 16 deletions

View file

@ -9,7 +9,7 @@ pub fn migrate(conn: &mut Connection) -> rusqlite::Result<()> {
let total = MIGRATIONS.len();
assert!(user_version <= total, "malformed database schema");
for (i, migration) in MIGRATIONS.iter().enumerate().skip(user_version) {
println!("Migrating vault from {} to {} (out of {})", i, i + 1, total);
eprintln!("Migrating vault from {} to {} (out of {})", i, i + 1, total);
migration(&mut tx)?;
}