install/includes/cli-core.php
changeset 818 12346be3ec3d
parent 814 7664d7d38a4a
child 857 f3a5a276208c
equal deleted inserted replaced
816:44b8446533e1 818:12346be3ec3d
   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";