Skip to content

Commit 60c7dc1

Browse files
committed
Fix _isFunctionDoesNotExist()
fixes motdotlaGH-840 Since the key of the error object changed from v3, it was not being checked correctly.
1 parent 5cdbe01 commit 60c7dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ they may not work as expected in the Lambda environment.
950950
}
951951

952952
_isFunctionDoesNotExist (err) {
953-
return err.code === 'ResourceNotFoundException' &&
953+
return err.name === 'ResourceNotFoundException' &&
954954
!!err.message.match(/^Function not found:/)
955955
}
956956

0 commit comments

Comments
 (0)