aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--yt/src/storage/migrate/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/src/storage/migrate/mod.rs b/yt/src/storage/migrate/mod.rs
index d320b62..daef2ad 100644
--- a/yt/src/storage/migrate/mod.rs
+++ b/yt/src/storage/migrate/mod.rs
@@ -48,7 +48,7 @@ macro_rules! make_upgrade {
$new_version,
)
.await
- .context("Failed to set the new version")?;
+ .with_context(|| format!("Failed to set the new version ({})", $new_version))?;
tx.commit()
.await
@@ -68,7 +68,7 @@ macro_rules! make_upgrade {
.await?;
Box::pin($new_version.update($app)).await.context(concat!(
- "Failed to update to version: ",
+ "While updating to version: ",
stringify!($new_version)
))
};
@@ -100,7 +100,7 @@ async fn add_error_context(
) -> Result<()> {
function
.await
- .with_context(|| format!("Format failed to migrate database to version: {level}"))
+ .with_context(|| format!("Failed to migrate database to version: {level}"))
}
async fn set_db_version(