Fix upgrade of feeds

This commit is contained in:
Romain Neutron
2011-12-08 18:24:40 +01:00
parent 9fb986e8f0
commit 3dae72d473
2 changed files with 25 additions and 5 deletions

View File

@@ -52,12 +52,15 @@ class Setup_Upgrade
public function __construct(appbox &$appbox)
{
if (self::lock_exists())
throw new Exception_Setup_UpgradeAlreadyStarted();
{
throw new Exception_Setup_UpgradeAlreadyStarted('The upgrade is already started');
}
$this->appbox = $appbox;
if(count(User_Adapter::get_wrong_email_users($appbox)) > 0)
{
throw new Exception_Setup_FixBadEmailAddresses();
throw new Exception_Setup_FixBadEmailAddresses('Please fix the database before starting');
}
$this->write_lock();