Skip to content

Commit

Permalink
Merge pull request #129 from SanariSan/master
Browse files Browse the repository at this point in the history
Update exception in getStack for SDK v3
  • Loading branch information
kddejong authored Feb 3, 2024
2 parents a663830 + 6ab7e8a commit f70ab9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ExecuteChangeSetCommand,
DescribeStacksCommand,
CreateStackCommand,
StackNotFoundException
CloudFormationServiceException
} from '@aws-sdk/client-cloudformation'
import { CreateChangeSetInput, CreateStackInput } from './main'

Expand Down Expand Up @@ -129,7 +129,7 @@ async function getStack(

return stacks.Stacks?.[0]
} catch (e) {
if (e instanceof StackNotFoundException) {
if (e instanceof CloudFormationServiceException) {
return undefined
}
throw e
Expand Down

0 comments on commit f70ab9c

Please sign in to comment.