Cleaning up exceptions in the BuildStatus controller

This commit is contained in:
Dan Cryer 2014-05-09 12:16:24 +01:00
parent 5fc0ed0249
commit 302717bad0

View file

@ -65,7 +65,8 @@ class BuildStatusController extends \PHPCI\Controller
public function view($projectId)
{
$project = $this->projectStore->getById($projectId);
if (!$project) {
if (empty($project)) {
throw new NotFoundException('Project with id: ' . $projectId . ' not found');
}