mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
Display DB error message if module installation fails
This commit is contained in:
parent
aeb7a97864
commit
86e1568bd5
1 changed files with 3 additions and 1 deletions
|
|
@ -526,7 +526,9 @@ class installController extends install
|
||||||
if(!$file || substr($file,-4)!='.xml') continue;
|
if(!$file || substr($file,-4)!='.xml') continue;
|
||||||
$output = $oDB->createTableByXmlFile($file);
|
$output = $oDB->createTableByXmlFile($file);
|
||||||
if($output === false)
|
if($output === false)
|
||||||
throw new Exception('msg_create_table_failed');
|
{
|
||||||
|
throw new Exception(lang('msg_create_table_failed') . ': ' . $oDB->getError()->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Create a table and module instance and then execute install() method
|
// Create a table and module instance and then execute install() method
|
||||||
unset($oModule);
|
unset($oModule);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue