summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/scripts/pearcmd-remote-list.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pear/scripts/pearcmd-remote-list.php b/pear/scripts/pearcmd-remote-list.php
index d30a4679fe..e0bd896621 100644
--- a/pear/scripts/pearcmd-remote-list.php
+++ b/pear/scripts/pearcmd-remote-list.php
@@ -3,6 +3,11 @@
$remote = new PEAR_Remote($config);
$result = $remote->call('package.listAll', 1);
$i = $j = 0;
+
+if (PEAR::isError($result)) {
+ die("\n\n Error while executing command!\n\n");
+}
+
heading("Available packages");
foreach ($result as $package => $info) {
if ($i++ % 20 == 0) {