Skip to content

Commit ed3a706

Browse files
committed
Clarify a bit the error message 'Unable to find migration version'
1 parent 3f3ce57 commit ed3a706

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

diesel_migrations/src/errors.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ impl fmt::Display for MigrationError {
4343
<timestamp>_<name_of_migration>, and it should only contain up.sql and down.sql."
4444
),
4545
MigrationError::IoError(ref error) => write!(f, "{}", error),
46-
MigrationError::UnknownMigrationVersion(_) => write!(
46+
MigrationError::UnknownMigrationVersion(ref version) => write!(
4747
f,
48-
"Unable to find migration version to revert in the migrations directory."
48+
"Unable to find migration version {} to revert in the migrations directory.",
49+
version
4950
),
5051
MigrationError::NoMigrationRun => write!(
5152
f,

0 commit comments

Comments
 (0)