diff options
author | Christian Dickmann <dickmann@php.net> | 2002-11-24 10:06:54 +0000 |
---|---|---|
committer | Christian Dickmann <dickmann@php.net> | 2002-11-24 10:06:54 +0000 |
commit | 7dd3e5e6831d659fe2c4fb73a25a0bad620e11de (patch) | |
tree | 2998e2bd6cf32fc189a19bf7a11c39bc0bcaab06 | |
parent | 5c2fda30b241a8d0793d7a6e414de78021e2fc5f (diff) | |
download | php-git-7dd3e5e6831d659fe2c4fb73a25a0bad620e11de.tar.gz |
add errormessage, but that does not fix the problem
-rw-r--r-- | pear/PEAR/Command/Remote.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index 0e6e94d11d..1af8902cf2 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -170,6 +170,9 @@ version of DB is 1.2, the downloaded file will be DB-1.2.tgz.', if (PEAR::isError($available)) { return $this->raiseError($available); } + if (!is_array($available)) { + return $this->raiseError('The package list could not be fetched from the remote server. Please try again. (Debug info: "'.$available.'")'); + } $data = array( 'caption' => 'All packages:', 'border' => true, |