Skip to content

Commit 4715c03

Browse files
committed
fix: dont start unless deploy exists
1 parent f09be60 commit 4715c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/project/deploy/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
240240
project
241241
);
242242

243-
this.stages.start(username, deploy);
244-
245243
if (!deploy) {
246244
this.stages.stop();
247245
this.log('No changes to deploy');
@@ -252,6 +250,8 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
252250
throw new SfError('The deploy id is not available.');
253251
}
254252

253+
this.stages.start(username, deploy);
254+
255255
if (flags.async) {
256256
this.stages.done({ status: 'Queued', username });
257257
this.stages.stop();

0 commit comments

Comments
 (0)