Add version information for failed cli migration (#3129) (#3130)

This commit is contained in:
Maciej Flak
2024-04-05 06:45:21 +02:00
committed by GitHub
parent 0aae849657
commit 45b5b61d7b
4 changed files with 15 additions and 3 deletions

View File

@@ -6,6 +6,9 @@ pub enum MigrateError {
#[error("while executing migrations: {0}")]
Execute(#[from] Error),
#[error("while executing migration {1}: {0}")]
ExecuteMigration(#[source] Error, i64),
#[error("while resolving migrations: {0}")]
Source(#[source] BoxDynError),