Browse Source

catch Error

develop
Robin Thoni 8 years ago
parent
commit
745edb6e7e
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/Utils/Controller/LuticateApplication.php

+ 6
- 0
src/Utils/Controller/LuticateApplication.php View File

105
             $r->setStatusCode(500);
105
             $r->setStatusCode(500);
106
             $r->setMessage("Internal Error");
106
             $r->setMessage("Internal Error");
107
         }
107
         }
108
+        catch (\Error $e)
109
+        {
110
+            LuLog::log($e);
111
+            $r->setStatusCode(500);
112
+            $r->setMessage("Internal Error");
113
+        }
108
         return $r;
114
         return $r;
109
     }
115
     }
110
     
116
     

Loading…
Cancel
Save