mirror of
https://github.com/knex/knex.git
synced 2025-06-26 22:00:25 +00:00
Fix error message for missing migration files (#4937)
This commit is contained in:
parent
a6d26ad1aa
commit
e171d61dad
@ -562,8 +562,9 @@ function validateMigrationList(migrationSource, migrations) {
|
||||
const [all, completed] = migrations;
|
||||
const diff = getMissingMigrations(migrationSource, completed, all);
|
||||
if (!isEmpty(diff)) {
|
||||
const names = diff.map((d) => d.name);
|
||||
throw new Error(
|
||||
`The migration directory is corrupt, the following files are missing: ${diff.join(
|
||||
`The migration directory is corrupt, the following files are missing: ${names.join(
|
||||
', '
|
||||
)}`
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user