Skip to content

Commit 083e636

Browse files
committed
chore: always stop stages in catch
1 parent 2f0dde3 commit 083e636

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/project/deploy/start.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,11 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
293293
}
294294

295295
protected catch(error: Error | SfError): Promise<never> {
296+
this.stages?.update({ status: 'Failed' });
297+
this.stages?.error();
298+
296299
if (error instanceof SourceConflictError && error.data) {
297300
if (!this.jsonEnabled()) {
298-
this.stages?.update({ status: 'Failed' });
299-
this.stages?.error();
300301
writeConflictTable(error.data);
301302
// set the message and add plugin-specific actions
302303
return super.catch({

0 commit comments

Comments
 (0)