Skip to content

Commit 88994e9

Browse files
committed
Display an error when the query fails instead of a warning
1 parent e1aee88 commit 88994e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function execute_statements( $import_file ) {
6666
throw $e;
6767
}
6868
} catch ( Exception $e ) {
69-
WP_CLI::warning( 'Could not execute statement: ' . $statement );
69+
WP_CLI::error( 'Could not execute statement: ' . $statement );
7070
echo $e->getMessage();
7171
}
7272
}

0 commit comments

Comments
 (0)