Skip to content

Commit

Permalink
Update handle exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vncore committed Jan 30, 2022
1 parent 48e720c commit 5587c2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Exceptions/Handler.php
Expand Up @@ -36,10 +36,8 @@ class Handler extends ExceptionHandler
public function report(Throwable $exception)
{
if ($this->shouldReport($exception)) {
$msg = "```". $exception->getMessage().'```'.PHP_EOL;
$msg .= "*File* `".$exception->getFile()."`, *Line:* ".$exception->getLine().", *Code:* ".$exception->getCode().PHP_EOL.'URL= '.url()->current();
if (function_exists('sc_report')) {
sc_report($msg);
if (function_exists('sc_handle_exception')) {
sc_handle_exception($exception);
}
}
parent::report($exception);
Expand Down

0 comments on commit 5587c2e

Please sign in to comment.