Ver Fonte

Merge branch 'master' into dev-vj

Vijayakrishnan há 3 anos atrás
pai
commit
94463cf189
1 ficheiros alterados com 10 adições e 0 exclusões
  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';