Skip to content

Commit

Permalink
only one catch and application->terminate()
Browse files Browse the repository at this point in the history
  • Loading branch information
chemix committed Jun 12, 2014
1 parent f7abe60 commit 17cf922
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/presenters/ImportPresenter.php
Expand Up @@ -33,14 +33,9 @@ public function renderDefault()
$posts = $response->getGraphObject()->asArray(); $posts = $response->getGraphObject()->asArray();


$data = $posts['data']; $data = $posts['data'];
} catch (FacebookRequestException $ex) {
// Session not valid, Graph API returned an exception with the reason.
echo $ex->getMessage();
exit();
} catch (\Exception $ex) { } catch (\Exception $ex) {
// Graph API returned info, but it may mismatch the current app or have expired. throw $ex;
echo $ex->getMessage(); $this->terminate();
exit();
} }


Dumper::dump($data); Dumper::dump($data);
Expand Down

0 comments on commit 17cf922

Please sign in to comment.