Skip to content

Commit

Permalink
fix(PdfHelper) : comment error reporting with not available vars in c…
Browse files Browse the repository at this point in the history
…atch
  • Loading branch information
mrflos committed Nov 15, 2023
1 parent f18ab4b commit 6129a77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/PdfHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ public function useBrowserToCreatePdfFromPage(

$browser->close();
} catch (Exception $e) {
if (($e instanceof OperationTimedOut) === false) {
$html = $page->evaluate('document.documentElement.innerHTML')->getReturnValue();
}
$browser->close();
// if (($e instanceof OperationTimedOut) === false) {
// $html = $page->evaluate('document.documentElement.innerHTML')->getReturnValue();
// }
// $browser->close();
throw new ExceptionWithHtml($e->getMessage(), 0, $e, $html ?? '');
}
}
Expand Down

0 comments on commit 6129a77

Please sign in to comment.