Skip to content

Commit 5db9491

Browse files
authored
chore: Add .catch() for cases when there are no warp deploy config (#6338)
### Description This PR addresses the issue of when there are no warp deploy config by exit(0) ### Backward compatibility Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
1 parent f244f59 commit 5db9491

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

typescript/infra/scripts/check/check-utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,19 @@ export async function getGovernor(
198198
if (!warpRouteId) {
199199
warpRouteId = await getWarpRouteIdInteractive();
200200
}
201+
201202
const config = await getWarpConfig(
202203
multiProvider,
203204
envConfig,
204205
warpRouteId,
205206
registryUris,
206-
);
207+
).catch((error) => {
208+
console.log(
209+
`Fetching warp route deploy config failed for ${warpRouteId}. Exiting with error: ${error}`,
210+
);
211+
process.exit(0);
212+
});
213+
207214
const warpAddresses = await getWarpAddressesFrom(warpRouteId, registryUris);
208215

209216
const filteredAddresses = Object.keys(warpAddresses) // filter out changes not in config

0 commit comments

Comments
 (0)