@@ -132,11 +132,11 @@ |
||
| 132 | 132 | $methodToRun = $this->currentMethod; |
| 133 | 133 | if(method_exists($controllerInstantiated, $methodToRun)){ |
| 134 | 134 | call_user_func_array([$controllerInstantiated, $methodToRun], $this->currentParams); |
| 135 | - }else{ |
|
| 135 | + } else{ |
|
| 136 | 136 | throw new \Exception("ERROR - Method <i>$methodToRun</i>() doesn't exist or is inaccessible"); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - }else{ |
|
| 139 | + } else{ |
|
| 140 | 140 | throw new \Exception("Class <i>$controllerWithNamespace</i> doesn't exist", 404); |
| 141 | 141 | } |
| 142 | 142 | } |