Skip to content
Snippets Groups Projects
Commit fc436e68 authored by xamgore's avatar xamgore
Browse files

Logging errors with non existing classes

parent c79b7a04
No related merge requests found
......@@ -75,6 +75,8 @@ class Kohana_Request_Client_Internal extends Request_Client {
{
if ( ! class_exists($prefix.$controller))
{
Log::instance()->add(Log::ERROR, "Class $prefix$controller does not exist!");
throw HTTP_Exception::factory(404,
'The requested URL :uri was not found on this server.',
[':uri' => $request->uri()]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment