Fix VACUUM INTO query error handling

This commit is contained in:
Aaron Brager 2026-03-22 12:34:35 -05:00 committed by BlackDex
parent 668f1bdedf
commit 717ebfbf89
No known key found for this signature in database
GPG Key ID: 58C80A2AA6C765E1

View File

@ -403,6 +403,7 @@ pub fn backup_sqlite() -> Result<String, Error> {
diesel::sql_query("VACUUM INTO ?")
.bind::<diesel::sql_types::Text, _>(&backup_file)
.execute(&mut conn)
.map(|_| ())
.map_res("VACUUM INTO failed")?;
Ok(backup_file)