From 2e208b6f88a45dd0f791074a8d5497fb56e740d3 Mon Sep 17 00:00:00 2001 From: evgen-d Date: Tue, 5 Aug 2014 10:41:35 +0400 Subject: [PATCH] exception fix --- console/controllers/MigrateController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/controllers/MigrateController.php b/console/controllers/MigrateController.php index abd886c..0faacea 100644 --- a/console/controllers/MigrateController.php +++ b/console/controllers/MigrateController.php @@ -89,8 +89,8 @@ class MigrateController extends BaseMigrateController { try { $history = $this->getHistory($limit); - } catch (ServerException $ex) { - if ($ex->getServerCode() == 1203) { + } catch (\Exception $ex) { + if ($ex->getPrevious()->getServerCode() == 1203) { $this->createMigrationHistoryCollection(); $history = $this->getHistory($limit); } else {