diff --git a/packages/serverless-offline-dynamodb-streams/src/index.js b/packages/serverless-offline-dynamodb-streams/src/index.js index 4193db11..ed550556 100644 --- a/packages/serverless-offline-dynamodb-streams/src/index.js +++ b/packages/serverless-offline-dynamodb-streams/src/index.js @@ -136,6 +136,9 @@ class ServerlessOfflineDynamoDBStreams { ) ).then(get('Table.LatestStreamArn')); + if (!streamARN) { + throw new Error(`Table ${tableName} does not have streams`); + } this.serverless.cli.log(`${streamARN}`); const {