Skip to content

Commit 01f21e1

Browse files
committed
Bug fixed.
1 parent 6c8e679 commit 01f21e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Router/RouterCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static function runRoute($command, $params = null, $path = '', $namespace
9292
elseif(is_null($params) && in_array($segments[1], get_class_methods($controller)))
9393
echo call_user_func([$controller, $segments[1]]);
9494
else
95-
return new Exception($segments[1] . ' method is not found in '.$segments[0].' controller. Please, check file.');
95+
return new RouterException($segments[1] . ' method is not found in '.$segments[0].' controller. Please, check file.');
9696
}
9797
else
9898
if(!is_null($params))

0 commit comments

Comments
 (0)