Skip to content

Commit 430a198

Browse files
committed
check the error
1 parent e922db5 commit 430a198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/StateService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class StateService {
149149
{ overwrite: false },
150150
);
151151
} catch (e) {
152-
if (e instanceof Error) {
152+
if ((e as AWS.AWSError).code === 'ConditionalCheckFailedException') {
153153
throw new TerraformError(409, stateLockRequest);
154154
}
155155
throw e;

0 commit comments

Comments
 (0)