1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13358] Fix tests and use exceptions instead of user object

PHPBB3-13358
This commit is contained in:
Marc Alexander
2014-11-21 21:34:02 +01:00
parent f6e7a94bd5
commit 352648f173
5 changed files with 17 additions and 22 deletions

View File

@@ -257,7 +257,13 @@ class version_helper
$errstr = $errno = '';
$this->file_downloader->set_error_number($errno)
->set_error_string($errstr);
$info = $this->file_downloader->get($this->host, $this->path, $this->file);
try {
$info = $this->file_downloader->get($this->host, $this->path, $this->file);
}
catch (\RuntimeException $exception)
{
throw new \RuntimeException(call_user_func_array(array($this->user, 'lang'), $exception->getMessage()));
}
if (!empty($errstr))
{