@@ -168,7 +168,7 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
if(!isset($errorMessage)){
$errorMessage='pre-condition failed for current upgrade step';
}
CRM_Core_Error::fatal($errorMessage);
thrownewCRM_Core_Exception($errorMessage);
}
$this->assign('recentlyViewed',FALSE);
}
...
...
@@ -234,7 +234,7 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
if(!isset($errorMessage)){
$errorMessage='post-condition failed for current upgrade step';
}
CRM_Core_Error::fatal($errorMessage);
thrownewCRM_Core_Exception($errorMessage);
}
}
...
...
@@ -385,7 +385,7 @@ SET version = '$version'
}
else{
if(!file_exists($sqlFile)){
CRM_Core_Error::fatal("sqlfile - $rev.mysql not found.");
thrownewCRM_Core_Exception("sqlfile - $rev.mysql not found.");
}
$this->source($sqlFile);
}
...
...
@@ -400,13 +400,13 @@ SET version = '$version'
$latestVer=CRM_Utils_System::version();
$currentVer=CRM_Core_BAO_Domain::version(TRUE);
if(!$currentVer){
CRM_Core_Error::fatal(ts('Version information missing in civicrm database.'));
thrownewCRM_Core_Exception(ts('Version information missing in civicrm database.'));
}
elseif(stripos($currentVer,'upgrade')){
CRM_Core_Error::fatal(ts('Database check failed - the database looks to have been partially upgraded. You may want to reload the database with the backup and try the upgrade process again.'));
thrownewCRM_Core_Exception(ts('Database check failed - the database looks to have been partially upgraded. You may want to reload the database with the backup and try the upgrade process again.'));
}
if(!$latestVer){
CRM_Core_Error::fatal(ts('Version information missing in civicrm codebase.'));
thrownewCRM_Core_Exception(ts('Version information missing in civicrm codebase.'));
}
return[$currentVer,$latestVer];
...
...
@@ -510,7 +510,7 @@ SET version = '$version'
// Ensure that queue can be created
if(!CRM_Queue_BAO_QueueItem::findCreateTable()){
CRM_Core_Error::fatal(ts('Failed to find or create queueing table'));
thrownewCRM_Core_Exception(ts('Failed to find or create queueing table'));
$invalidDataMessage='<strong>Oops, it looks like you have orphaned recurring contribution records in your database. Before this upgrade can complete they will need to be fixed or deleted. <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Fixing+Orphaned+Contribution+Recur+Records" target="_blank">You can review steps to correct this situation on the documentation wiki.</a></strong>';