// Added debug information to the installer #PSCFV-4195
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17555 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
fb8e8fd23a
commit
c15f0f19fa
1 file changed
+3
-3
@@ -254,7 +254,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$shop_group->active = true;
|
$shop_group->active = true;
|
||||||
if (!$shop_group->add())
|
if (!$shop_group->add())
|
||||||
{
|
{
|
||||||
$this->setError($this->language->l('Cannot create group shop'));
|
$this->setError($this->language->l('Cannot create group shop').' / '.Db::getInstance()->getMsgError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,7 +267,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$shop->name = $shop_name;
|
$shop->name = $shop_name;
|
||||||
if (!$shop->add())
|
if (!$shop->add())
|
||||||
{
|
{
|
||||||
$this->setError($this->language->l('Cannot create shop'));
|
$this->setError($this->language->l('Cannot create shop').' / '.Db::getInstance()->getMsgError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Context::getContext()->shop = $shop;
|
Context::getContext()->shop = $shop;
|
||||||
@@ -282,7 +282,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$shop_url->active = true;
|
$shop_url->active = true;
|
||||||
if (!$shop_url->add())
|
if (!$shop_url->add())
|
||||||
{
|
{
|
||||||
$this->setError($this->language->l('Cannot create shop URL'));
|
$this->setError($this->language->l('Cannot create shop URL').' / '.Db::getInstance()->getMsgError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user