Don't use echo

This commit is contained in:
Pierre Rudloff 2016-04-10 19:28:59 +02:00
parent c92ea929a4
commit 39205ebe45

View file

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