Skip to content

Commit

Permalink
fix: compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 4, 2024
1 parent c4195cd commit 922c085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/project/retrieve/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
});
retrieve.onCancel((data) => {
this.ms.updateData({ status: mdTransferMessages.getMessage(data?.status ?? 'Canceled') });
this.ms.stop(new Error('Retrieve canceled'));
this.ms.error();
});
retrieve.onError((error: Error) => {
if (error.message.includes('client has timed out')) {
this.ms.updateData({ status: 'Client Timeout' });
}

this.ms.stop(error);
this.ms.error();
throw error;
});

Expand Down Expand Up @@ -301,7 +301,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
protected catch(error: Error | SfError): Promise<never> {
if (!this.jsonEnabled() && error instanceof SourceConflictError && error.data) {
this.ms.updateData({ status: 'Failed' });
this.ms.stop(error);
this.ms.error();
writeConflictTable(error.data);
// set the message and add plugin-specific actions
return super.catch({
Expand All @@ -310,7 +310,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
actions: messages.getMessages('error.Conflicts.Actions'),
});
} else {
this.ms.stop(error);
this.ms.error();
}

return super.catch(error);
Expand Down

0 comments on commit 922c085

Please sign in to comment.