Commit f1d1934f authored by Avris's avatar Avris

more meaningful exceptions

parent 48242562
......@@ -185,7 +185,7 @@ class Project implements \JsonSerializable
}
}
throw new NotFoundException;
throw new NotFoundException(sprintf('Server %s not found', $name));
}
/**
......@@ -257,7 +257,7 @@ class Project implements \JsonSerializable
})->first();
if (!$projectUser) {
throw new NotFoundException;
throw new NotFoundException(sprintf('User %s not found', $identifier));
}
return $projectUser;
......
Markdown is supported
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