diff --git a/packages/serverless-cms-aws/src/api/plugins/executeDataMigrations.ts b/packages/serverless-cms-aws/src/api/plugins/executeDataMigrations.ts index 059a2d3980e..06e20312c0e 100644 --- a/packages/serverless-cms-aws/src/api/plugins/executeDataMigrations.ts +++ b/packages/serverless-cms-aws/src/api/plugins/executeDataMigrations.ts @@ -68,6 +68,7 @@ export const executeDataMigrations = { } catch (e) { context.error(`An error occurred while executing data migrations Lambda function!`); console.log(e); + throw e; } } };