We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83be865 commit bdd9349Copy full SHA for bdd9349
src/Import.php
@@ -61,6 +61,9 @@ protected function execute_statements( $import_file ) {
61
$converted_statement = mb_convert_encoding( $statement, 'UTF-8', $detected_encoding );
62
echo 'Converted ecoding for statement: ' . $converted_statement . PHP_EOL;
63
$this->driver->query( $converted_statement );
64
+ } else {
65
+ // It's not a encoding issue, so rethrow the exception.
66
+ throw $e;
67
}
68
} catch ( Exception $e ) {
69
WP_CLI::warning( 'Could not execute statement: ' . $statement );
0 commit comments