Clarify a bit the error message 'Unable to find migration version'
@@ -43,9 +43,10 @@ impl fmt::Display for MigrationError {
<timestamp>_<name_of_migration>, and it should only contain up.sql and down.sql."
),
MigrationError::IoError(ref error) => write!(f, "{}", error),
- MigrationError::UnknownMigrationVersion(_) => write!(
+ MigrationError::UnknownMigrationVersion(ref version) => write!(
f,
- "Unable to find migration version to revert in the migrations directory."
+ "Unable to find migration version {} to revert in the migrations directory.",
+ version
),
MigrationError::NoMigrationRun => write!(
f,
