Explorar o código

Merge branch 'master' into dev-vj

Vijayakrishnan %!s(int64=3) %!d(string=hai) anos
pai
achega
94463cf189
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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';