We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d4528 commit bf9e804Copy full SHA for bf9e804
lib/deploy/events/apiGateway/restApi.js
@@ -27,9 +27,9 @@ module.exports = {
27
vpcEndpointIds = this.serverless.service.provider.vpcEndpointIds;
28
29
if (endpointType !== 'PRIVATE') {
30
- throw new ServerlessError(
+ throw new Error(
31
'VPC endpoint IDs are only available for private APIs',
32
- 'API_GATEWAY_INVALID_VPC_ENDPOINT_IDS_CONFIG'
+ 'API_GATEWAY_INVALID_VPC_ENDPOINT_IDS_CONFIG',
33
);
34
}
35
0 commit comments