Skip to content

Commit

Permalink
Correct error message for count format
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Aug 13, 2024
1 parent 5cf12ef commit a9994f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DB_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ public function search( $args, $assoc_args ) {

if ( in_array( $format, [ 'ids', 'count' ], true ) ) {
if ( count( $tables ) > 1 ) {
WP_CLI::error( 'The "ids" format can only be used for a single table.' );
WP_CLI::error( "The \"{$format}\" format can only be used for a single table." );
}
$search_results = array_column( $search_results, 'primary_key_value' );
}
Expand Down

0 comments on commit a9994f8

Please sign in to comment.