From 68872c26bc9d54a0a3f3115d42da4b41099ff07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Helfensd=C3=B6rfer?= Date: Fri, 28 Dec 2018 12:15:22 +0100 Subject: [PATCH] Added todos for throwing exceptions, #42 --- src/AutoUpdate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AutoUpdate.php b/src/AutoUpdate.php index 2c80a1f..8337f58 100755 --- a/src/AutoUpdate.php +++ b/src/AutoUpdate.php @@ -444,6 +444,7 @@ public function checkUpdate() throw new DownloadException($updateFile); } } else { + // TODO: Throw exception on error $update = @file_get_contents($updateFile, false, $this->_useBasicAuth()); if ($update === false) { @@ -599,6 +600,7 @@ protected function _downloadUpdate($updateUrl, $updateFile) return false; } } elseif (ini_get('allow_url_fopen')) { + // TODO: Throw exception on error $update = @file_get_contents($updateUrl, false, $this->_useBasicAuth()); if ($update === false) {