Skip to content

Commit

Permalink
Fix Namespace for Exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorvansach committed Jul 30, 2016
1 parent b412f58 commit af923f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controller/Login/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function execute()

try {
$login->authenticateCustomer();
} catch (Exception $e) {
} catch (\Exception $e) {
$this->messageManager->addError($e->getMessage());
}

Expand Down
2 changes: 1 addition & 1 deletion Model/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function authenticateCustomer()
$customer = $this->getCustomer();

if (!$customer->getId()) {
throw new Exception(__("Customer are no longer exist."), 1);
throw new \Exception(__("Customer are no longer exist."), 1);
}

if ($this->_customerSession->loginById($customer->getId())) {
Expand Down

0 comments on commit af923f7

Please sign in to comment.