File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,13 @@ class ServerlessDynamodbLocal {
245
245
}
246
246
dynamodb . raw . createTable ( migration , ( err ) => {
247
247
if ( err ) {
248
- this . serverlessLog ( "DynamoDB - Error - " , err ) ;
249
- reject ( err ) ;
248
+ if ( err . name === 'ResourceInUseException' ) {
249
+ this . serverlessLog ( `DynamoDB - Warn - table ${ migration . TableName } already exists` ) ;
250
+ resolve ( ) ;
251
+ } else {
252
+ this . serverlessLog ( "DynamoDB - Error - " , err ) ;
253
+ reject ( err ) ;
254
+ }
250
255
} else {
251
256
this . serverlessLog ( "DynamoDB - created table " + migration . TableName ) ;
252
257
resolve ( migration ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " serverless-dynamodb-local" ,
3
- "version" : " 0.2.24 " ,
3
+ "version" : " 0.2.25 " ,
4
4
"engines" : {
5
5
"node" : " >=4.0"
6
6
},
You can’t perform that action at this time.
0 commit comments