File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/commands/project/retrieve Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,14 +235,14 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
235
235
} ) ;
236
236
retrieve . onCancel ( ( data ) => {
237
237
this . ms . updateData ( { status : mdTransferMessages . getMessage ( data ?. status ?? 'Canceled' ) } ) ;
238
- this . ms . stop ( new Error ( 'Retrieve canceled' ) ) ;
238
+ this . ms . error ( ) ;
239
239
} ) ;
240
240
retrieve . onError ( ( error : Error ) => {
241
241
if ( error . message . includes ( 'client has timed out' ) ) {
242
242
this . ms . updateData ( { status : 'Client Timeout' } ) ;
243
243
}
244
244
245
- this . ms . stop ( error ) ;
245
+ this . ms . error ( ) ;
246
246
throw error ;
247
247
} ) ;
248
248
@@ -301,7 +301,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
301
301
protected catch ( error : Error | SfError ) : Promise < never > {
302
302
if ( ! this . jsonEnabled ( ) && error instanceof SourceConflictError && error . data ) {
303
303
this . ms . updateData ( { status : 'Failed' } ) ;
304
- this . ms . stop ( error ) ;
304
+ this . ms . error ( ) ;
305
305
writeConflictTable ( error . data ) ;
306
306
// set the message and add plugin-specific actions
307
307
return super . catch ( {
@@ -310,7 +310,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
310
310
actions : messages . getMessages ( 'error.Conflicts.Actions' ) ,
311
311
} ) ;
312
312
} else {
313
- this . ms . stop ( error ) ;
313
+ this . ms . error ( ) ;
314
314
}
315
315
316
316
return super . catch ( error ) ;
You can’t perform that action at this time.
0 commit comments