Changeset 3053
- Timestamp:
- 04/30/2016 09:56:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cli/class-set-plugin-project.php
r3052 r3053 37 37 public function __invoke( $args, $assoc_args ) { 38 38 if ( ! preg_match( '/^[^\/]+$/', $args[0] ) ) { 39 WP_CLI::line( sprintf( "The plugin slug '%s' contains invalid characters.", $args[0] ) ); 40 exit( 1 ); 39 WP_CLI::error( sprintf( "The plugin slug '%s' contains invalid characters.", $args[0] ), 1 ); 41 40 } 42 41 … … 48 47 $master_project = GP::$project->by_path( $this->master_project_path ); 49 48 if ( ! $master_project ) { 50 WP_CLI::line( sprintf( "The master project '%s' couldn't be found.", $this->master_project_path ) ); 51 exit( 2 ); 49 WP_CLI::error( sprintf( "The master project '%s' couldn't be found.", $this->master_project_path ), 2 ); 52 50 } 53 51 … … 86 84 $plugin_project = GP::$project->create_and_select( $project_args ); 87 85 if ( ! $plugin_project ) { 88 WP_CLI::line( "Couldn't create project for {$plugin_project_path}." ); 89 exit( 5 ); 86 WP_CLI::error( "Couldn't create project for {$plugin_project_path}.", 5 ); 90 87 } 91 88 } else {
Note: See TracChangeset
for help on using the changeset viewer.