MCPcopy Create free account
hub / github.com/observablehq/framework / checkDeployCreated

Method checkDeployCreated

src/deploy.ts:210–225  ·  view source on GitHub ↗
(deployId: string)

Source from the content-addressed store, hash-verified

208
209 // Make sure deploy exists and has an expected status.
210 private async checkDeployCreated(deployId: string) {
211 try {
212 const deployInfo = await this.apiClient.getDeploy(deployId);
213 if (deployInfo.status !== "created") {
214 throw new CliError(`Deploy ${deployId} has an unexpected status: ${deployInfo.status}`);
215 }
216 return deployInfo;
217 } catch (error) {
218 if (isHttpError(error)) {
219 throw new CliError(`Deploy ${deployId} not found.`, {
220 cause: error
221 });
222 }
223 throw error;
224 }
225 }
226
227 // Get the deploy config, updating if necessary.
228 private async getUpdatedDeployConfig() {

Callers 1

Calls 2

isHttpErrorFunction · 0.85
getDeployMethod · 0.80

Tested by

no test coverage detected