From 09c2454cad3aeba99988bd7bee678c6de4325caf Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Fri, 26 May 2023 14:12:36 +0200 Subject: [PATCH] fix(serverless-cms-aws): rethrow error after logging --- .../serverless-cms-aws/src/api/plugins/executeDataMigrations.ts | 1 + 1 file changed, 1 insertion(+) 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; } } };