Skip to content

Commit 22680fa

Browse files
committed
fix(apigw): deploy outputs type
1 parent 0276375 commit 22680fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/apigw/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import ServiceEntity from './entities/service';
2020
import ApiEntity from './entities/api';
2121
import UsagePlanEntity from './entities/usage-plan';
2222
import CustomDomainEntity from './entities/custom-domain';
23+
import { ApiError } from '../../utils/error';
2324

2425
export default class Apigw {
2526
credentials: CapiCredentials;
@@ -234,6 +235,10 @@ export default class Apigw {
234235

235236
return outputs;
236237
}
238+
throw new ApiError({
239+
type: 'API_APIGW_DescribeService',
240+
message: `Service ${serviceId} not exist`,
241+
});
237242
}
238243
}
239244

0 commit comments

Comments
 (0)