Merge pull request #176 from skipperbent/v2-development

Fixed HttpException not thrown as NotFoundHttpException
This commit is contained in:
Simon Sessingø
2016-11-24 13:18:52 +02:00
committed by GitHub
+1 -1
View File
@@ -157,7 +157,7 @@ abstract class Route implements IRoute
protected function loadClass($name)
{
if (!class_exists($name)) {
throw new HttpException(sprintf('Class %s does not exist', $name), 500);
throw new NotFoundHttpException(sprintf('Class %s does not exist', $name), 404);
}
return new $name();