We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f6596 commit c32809aCopy full SHA for c32809a
sqlx-core/src/migrate/source.rs
@@ -47,7 +47,10 @@ impl<'s> MigrationSource<'s> for &'s Path {
47
continue;
48
}
49
50
- let version: i64 = parts[0].parse()?;
+ let version: i64 = parts[0].parse()
51
+ .map_err(|_e| {
52
+ format!("error parsing migration filename {file_name:?}; expected integer version prefix (e.g. `01_foo.sql`)")
53
+ })?;
54
55
let migration_type = MigrationType::from_filename(parts[1]);
56
// remove the `.sql` and replace `_` with ` `
0 commit comments