install/includes/cli-core.php
changeset 827 2c20563245b2
parent 818 12346be3ec3d
child 857 f3a5a276208c
equal deleted inserted replaced
826:dcf5381ce8ba 827:2c20563245b2
   312 
   312 
   313 $result = $dbal->connect(true, $dbhost, $dbuser, $dbpasswd, $dbname);
   313 $result = $dbal->connect(true, $dbhost, $dbuser, $dbpasswd, $dbname);
   314 if ( !$result )
   314 if ( !$result )
   315 {
   315 {
   316   if ( !$silent )
   316   if ( !$silent )
       
   317   {
   317     echo parse_shellcolor_string($lang->get('cli_test_fail')) . "\n";
   318     echo parse_shellcolor_string($lang->get('cli_test_fail')) . "\n";
       
   319     echo "[$driver] " . $dbal->sql_error() . "\n";
       
   320   }
   318   installer_fail($lang->get('cli_err_db_connect_fail'));
   321   installer_fail($lang->get('cli_err_db_connect_fail'));
   319 }
   322 }
   320 
   323 
   321 if ( !$silent )
   324 if ( !$silent )
   322   echo parse_shellcolor_string($lang->get('cli_test_pass')) . "\n";
   325   echo parse_shellcolor_string($lang->get('cli_test_pass')) . "\n";