Permalink
Browse files

only one catch and application->terminate()

  • Loading branch information...
chemix committed Jun 12, 2014
1 parent f7abe60 commit 17cf92295d9b10da4502d34ea870933ac499983e
Showing with 2 additions and 7 deletions.
  1. +2 −7 app/presenters/ImportPresenter.php
@@ -33,14 +33,9 @@ public function renderDefault()
$posts = $response->getGraphObject()->asArray();
$data = $posts['data'];
} catch (FacebookRequestException $ex) {
// Session not valid, Graph API returned an exception with the reason.
echo $ex->getMessage();
exit();
} catch (\Exception $ex) {
// Graph API returned info, but it may mismatch the current app or have expired.
echo $ex->getMessage();
exit();
throw $ex;
$this->terminate();
}
Dumper::dump($data);

0 comments on commit 17cf922

Please sign in to comment.