Skip to content

Commit e59f2df

Browse files
swissspidyCopilot
andauthored
Update src/DB_Command_SQLite.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0eb080b commit e59f2df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DB_Command_SQLite.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ protected function sqlite_import( $file, $assoc_args ) {
397397
WP_CLI::error( 'Database does not exist.' );
398398
}
399399

400+
if ( ! $this->is_sqlite3_available() ) {
401+
WP_CLI::error( 'The sqlite3 CLI binary could not be found. Please ensure it is installed and available on your PATH.' );
402+
}
400403
if ( '-' === $file ) {
401404
$contents = file_get_contents( 'php://stdin' );
402405
if ( false === $contents ) {

0 commit comments

Comments
 (0)