Don't use echo
This commit is contained in:
parent
c92ea929a4
commit
39205ebe45
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue