fix api /servers/{id}/build

remove unrelated error thrown every time
This commit is contained in:
Jakob 2016-11-30 12:26:23 +01:00 committed by GitHub
parent 93d9efb7d0
commit 03c6f986d2

View file

@ -221,8 +221,6 @@ class ServerController extends BaseController
public function build(Request $request, $id)
{
try {
throw new BadRequestHttpException('There was an error while attempting to add this node to the system.');
$server = new ServerRepository;
$server->changeBuild($id, $request->all());
return Models\Server::findOrFail($id);