Skip to content

Commit 922c085

Browse files
committed
fix: compilation errors
1 parent c4195cd commit 922c085

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/project/retrieve/start.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
235235
});
236236
retrieve.onCancel((data) => {
237237
this.ms.updateData({ status: mdTransferMessages.getMessage(data?.status ?? 'Canceled') });
238-
this.ms.stop(new Error('Retrieve canceled'));
238+
this.ms.error();
239239
});
240240
retrieve.onError((error: Error) => {
241241
if (error.message.includes('client has timed out')) {
242242
this.ms.updateData({ status: 'Client Timeout' });
243243
}
244244

245-
this.ms.stop(error);
245+
this.ms.error();
246246
throw error;
247247
});
248248

@@ -301,7 +301,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
301301
protected catch(error: Error | SfError): Promise<never> {
302302
if (!this.jsonEnabled() && error instanceof SourceConflictError && error.data) {
303303
this.ms.updateData({ status: 'Failed' });
304-
this.ms.stop(error);
304+
this.ms.error();
305305
writeConflictTable(error.data);
306306
// set the message and add plugin-specific actions
307307
return super.catch({
@@ -310,7 +310,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
310310
actions: messages.getMessages('error.Conflicts.Actions'),
311311
});
312312
} else {
313-
this.ms.stop(error);
313+
this.ms.error();
314314
}
315315

316316
return super.catch(error);

0 commit comments

Comments
 (0)