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,6 +105,12 @@ class LuticateApplication implements MessageComponentInterface
105 105
             $r->setStatusCode(500);
106 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 114
         return $r;
109 115
     }
110 116
     

Loading…
Cancel
Save