Fixed HttpException not thrown as NotFoundHttpException

This commit is contained in:
Simon Sessingø
2016-11-24 12:17:47 +01:00
parent ff1f027bda
commit 132cf1a10d

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();