Skip to content

Commit

Permalink
Revert "fix(migrator): exception class expect two arguments"
Browse files Browse the repository at this point in the history
This reverts commit 947e851.
  • Loading branch information
RomainLanz committed Sep 29, 2023
1 parent 947e851 commit 498c308
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Migrator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,11 @@ export class Migrator extends EventEmitter implements MigratorContract {
existing.forEach((file) => {
const migration = collected.find(({ name }) => name === file.name)
if (!migration) {
throw new Exception(`Cannot perform rollback. Schema file {${file.name}} is missing`, {
code: 'E_MISSING_SCHEMA_FILES',
status: 500,
})
throw new Exception(
`Cannot perform rollback. Schema file {${file.name}} is missing`,
500,
'E_MISSING_SCHEMA_FILES'
)
}

this.migratedFiles[migration.name] = {
Expand Down

0 comments on commit 498c308

Please sign in to comment.