Selaa lähdekoodia

fixed error handling

= 3 vuotta sitten
vanhempi
commit
db568f02fe
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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';