From c106607fbd53c4970508ba6729a43d59f90b40e5 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Tue, 5 Sep 2017 15:50:04 +0200 Subject: [PATCH] Fix exit code handling in sql-cli (#2928) --- src/Commands/sql/SqlCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/sql/SqlCommands.php b/src/Commands/sql/SqlCommands.php index d368cc63be..0d00f29bfe 100644 --- a/src/Commands/sql/SqlCommands.php +++ b/src/Commands/sql/SqlCommands.php @@ -131,7 +131,7 @@ public function cli($options = []) { $this->further($options); $sql = SqlBase::create($options); - if (!drush_shell_proc_open($sql->connect())) { + if (drush_shell_proc_open($sql->connect())) { throw new \Exception('Unable to open database shell. Rerun with --debug to see any error message.'); } }