Don't use echo

This commit is contained in:
Pierre Rudloff 2016-04-10 19:28:59 +02:00
parent c92ea929a4
commit 39205ebe45
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class FrontController
$url = $this->download->getURL($params["url"]);
return $response->withRedirect($url);
} catch (\Exception $e) {
echo $e->getMessage().PHP_EOL;
$response->getBody()->write($e->getMessage());
return $response->withHeader('Content-Type', 'text/plain');
}
}