Skip to content

Commit

Permalink
fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed May 13, 2016
1 parent 19d5a24 commit 5d84241
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/MailPreviewMiddleware.php
Expand Up @@ -16,13 +16,7 @@ class MailPreviewMiddleware
*/
public function handle($request, Closure $next)
{
try {
$response = $next($request);
} catch (\Exception $e) {
$response = $this->handleException($request, $e);
} catch (\Throwable $e) {
$response = $this->handleException($request, $e);
}
$response = $next($request);

if ($response instanceOf Response && $previewPath = $request->session()->get('mail_preview_path')) {
$this->addLinkToResponse($response, $previewPath);
Expand Down

0 comments on commit 5d84241

Please sign in to comment.