Skip to content

Commit 79e2f5b

Browse files
Migrate fix for a breaking change from serverless-offline
serverless-offline issue: dherault#767 With `unhandledRejection` removed serverless does not update exit code when fails. This leads to a successful deploy status for a failed deploy.
1 parent 59e0b4d commit 79e2f5b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,4 @@ class Offline {
10441044
}
10451045
}
10461046

1047-
// Serverless exits with code 1 when a promise rejection is unhandled. Not AWS.
1048-
// Users can still use their own unhandledRejection event though.
1049-
process.removeAllListeners('unhandledRejection');
1050-
10511047
module.exports = Offline;

0 commit comments

Comments
 (0)