Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/commands/project/deploy/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {

const result = await deploy.pollStatus({ timeout: flags.wait });
process.exitCode = determineExitCode(result);
this.stages.stop();
const formatter = new DeployResultFormatter(result, flags);

if (!this.jsonEnabled()) {
Expand All @@ -292,10 +293,11 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
}

protected catch(error: Error | SfError): Promise<never> {
this.stages?.update({ status: 'Failed' });
this.stages?.error();

if (error instanceof SourceConflictError && error.data) {
if (!this.jsonEnabled()) {
this.stages?.update({ status: 'Failed' });
this.stages?.error();
writeConflictTable(error.data);
// set the message and add plugin-specific actions
return super.catch({
Expand Down
Loading