Преглед на файлове

Merge branch 'master' into dev-vj

Vijayakrishnan преди 3 години
родител
ревизия
94463cf189
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      app/Exceptions/Handler.php

+ 10 - 0
app/Exceptions/Handler.php

@@ -57,6 +57,16 @@ class Handler extends ExceptionHandler
 
     private function reportError(Throwable $e){
         try {
+
+            if(!$e->getMessage()){
+                return;
+            }
+
+            if(strtolower($e->getMessage()) == 'not found'){
+                //ignore
+                return;
+            }
+
             if($e->getMessage()){
                 $url =   config('stag.backendUrl') . '/dev/reportPhpError';
                 $headers['secret'] = 'superman';