Skip to content

Commit

Permalink
Merge pull request #166 from wp-cli/no-time-to-die
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Oct 20, 2023
2 parents ca25b73 + 073463d commit 9de6ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config_Command.php
Expand Up @@ -165,7 +165,7 @@ public function create( $_, $assoc_args ) {
try {
mysqli_real_connect( $mysql, $assoc_args['dbhost'], $assoc_args['dbuser'], $assoc_args['dbpass'] );
} catch ( mysqli_sql_exception $exception ) {
die( 'Database connection error (' . $exception->getCode() . ') ' . $exception->getMessage() );
WP_CLI::error( 'Database connection error (' . $exception->getCode() . ') ' . $exception->getMessage() );
}
// phpcs:enable WordPress.DB.RestrictedFunctions
}
Expand Down

0 comments on commit 9de6ce3

Please sign in to comment.