Skip to content

Commit

Permalink
Better error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fastslack committed Feb 17, 2012
1 parent f62f11f commit bf20f3f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions trunk/admin/includes/migrate_menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,15 @@ protected function setDestinationData()
// Truncate jupgrade_menus table
$this->cleanDestinationData();

if (parent::setDestinationData()) {
echo JError::raiseError(500, $table->getError());
try
{
parent::setDestinationData();
}
catch (Exception $e)
{
echo JError::raiseError(500, $e->getMessage());

return false;
}
}
}

0 comments on commit bf20f3f

Please sign in to comment.