Skip to content

Commit 3227dc4

Browse files
committed
Re-throw on failure
1 parent 9b49f1f commit 3227dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SchemaMigrations/DefinedSchemas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class DefinedSchemas {
7979
logger.info('Running Migrations Completed');
8080
} catch (e) {
8181
logger.error(`Failed to run migrations: ${e}`);
82-
if (process.env.NODE_ENV === 'production') process.exit(1);
82+
throw e;
8383
}
8484
}
8585

0 commit comments

Comments
 (0)