File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11import { FlagOptions } from './types.js'
22import { checkForUndefinedFieldError } from '../services/store/utils/graphql-errors.js'
33import Command from '@shopify/cli-kit/node/base-command'
4- import { renderError } from '@shopify/cli-kit/node/ui '
4+ import { AbortError } from '@shopify/cli-kit/node/error '
55
66export abstract class BaseBDCommand extends Command {
77 abstract runCommand ( ) : Promise < void >
@@ -17,11 +17,8 @@ export abstract class BaseBDCommand extends Command {
1717 if ( checkForUndefinedFieldError ( error ) ) {
1818 errorMessage = `This command is in Early Accesss and is not yet available for the requested store(s).`
1919 }
20- renderError ( {
21- headline : `Operation failed` ,
22- body : errorMessage ,
23- } )
24- process . exit ( 1 )
20+
21+ throw new AbortError ( errorMessage )
2522 } else {
2623 throw error
2724 }
You can’t perform that action at this time.
0 commit comments