Skip to content

Commit bf9e804

Browse files
fix: linting
1 parent 61d4528 commit bf9e804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/deploy/events/apiGateway/restApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ module.exports = {
2727
vpcEndpointIds = this.serverless.service.provider.vpcEndpointIds;
2828

2929
if (endpointType !== 'PRIVATE') {
30-
throw new ServerlessError(
30+
throw new Error(
3131
'VPC endpoint IDs are only available for private APIs',
32-
'API_GATEWAY_INVALID_VPC_ENDPOINT_IDS_CONFIG'
32+
'API_GATEWAY_INVALID_VPC_ENDPOINT_IDS_CONFIG',
3333
);
3434
}
3535
}

0 commit comments

Comments
 (0)