Skip to content

Commit e80786b

Browse files
committed
slightly more human-readable error message
1 parent 75cbf50 commit e80786b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class Deployer {
205205

206206
private async cloudBuild(deployTarget: DeployTargetInfo) {
207207
if (deployTarget.create) {
208-
throw new Error("Incorrect deployTarget state");
208+
throw new Error("Incorrect deploy target state");
209209
}
210210
const {deployPollInterval: pollInterval = DEPLOY_POLL_INTERVAL_MS} = this.deployOptions;
211211
await this.apiClient.postProjectBuild(deployTarget.project.id);
@@ -238,7 +238,7 @@ class Deployer {
238238

239239
private async maybeLinkGitHub(deployTarget: DeployTargetInfo): Promise<boolean> {
240240
if (deployTarget.create) {
241-
throw new Error("Incorrect deployTarget state");
241+
throw new Error("Incorrect deploy target state");
242242
}
243243
if (!this.effects.isTty) return false;
244244
if (deployTarget.project.build_environment_id && deployTarget.project.source) {

0 commit comments

Comments
 (0)