Skip to content

Commit 098f350

Browse files
committed
Updated rorm-db error handling
1 parent 9346d2b commit 098f350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/migrate/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub async fn run_migrate_custom(
178178
Vec::new(),
179179
)
180180
.await
181-
.and_then(|option| option.map(|row| row.get(0)).transpose())
181+
.and_then(|option| option.map(|row| row.get(0)).transpose().map_err(Into::into))
182182
.with_context(|| {
183183
"Couldn't fetch information about successful migrations from migration table"
184184
})?;

0 commit comments

Comments
 (0)