Skip to content

Commit

Permalink
Handling ctrl+c gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 18, 2024
1 parent db0658e commit 2e91186
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/create-block/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ program
if ( error instanceof CLIError ) {
log.error( error.message );
process.exit( 1 );
} else if ( error.name === 'ExitPromptError' ) {
log.info( 'Please try again later!' );
process.exit( 1 );
} else {
throw error;
}
Expand Down

0 comments on commit 2e91186

Please sign in to comment.