From 922c085bfd65cb342d5cbe598369009dc0c02576 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 4 Sep 2024 09:58:44 -0600 Subject: [PATCH] fix: compilation errors --- src/commands/project/retrieve/start.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/project/retrieve/start.ts b/src/commands/project/retrieve/start.ts index 47018a1d4..1efca178a 100644 --- a/src/commands/project/retrieve/start.ts +++ b/src/commands/project/retrieve/start.ts @@ -235,14 +235,14 @@ export default class RetrieveMetadata extends SfCommand { }); 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; }); @@ -301,7 +301,7 @@ export default class RetrieveMetadata extends SfCommand { protected catch(error: Error | SfError): Promise { 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({ @@ -310,7 +310,7 @@ export default class RetrieveMetadata extends SfCommand { actions: messages.getMessages('error.Conflicts.Actions'), }); } else { - this.ms.stop(error); + this.ms.error(); } return super.catch(error);