Skip to content

Commit a9994f8

Browse files
committed
Correct error message for count format
1 parent 5cf12ef commit a9994f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public function search( $args, $assoc_args ) {
15531553

15541554
if ( in_array( $format, [ 'ids', 'count' ], true ) ) {
15551555
if ( count( $tables ) > 1 ) {
1556-
WP_CLI::error( 'The "ids" format can only be used for a single table.' );
1556+
WP_CLI::error( "The \"{$format}\" format can only be used for a single table." );
15571557
}
15581558
$search_results = array_column( $search_results, 'primary_key_value' );
15591559
}

0 commit comments

Comments
 (0)