Re: cvs: php4 /pear/scripts pearcmd-remote-list.php
| From: | Stig S. Bakken | Date: | Thu, 07 Feb 2002 23:10:05 +0000 |
| Subject: | Re: cvs: php4 /pear/scripts pearcmd-remote-list.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-2327@lists.php.net to get a copy of this message | ||
Huh? "pear" and "pear-get" are supposed to use an error handler
callback for all of this.
- Stig
On Thu, 2002-02-07 at 21:50, Martin Jansen wrote:
> mj Thu Feb 7 15:50:08 2002 EDT
>
> Modified files:
> /php4/pear/scripts pearcmd-remote-list.php
> Log:
> * Better error handling.
>
>
> Index: php4/pear/scripts/pearcmd-remote-list.php
> diff -u php4/pear/scripts/pearcmd-remote-list.php:1.1
> php4/pear/scripts/pearcmd-remote-list.php:1.2
> --- php4/pear/scripts/pearcmd-remote-list.php:1.1 Wed Jan 30 07:20:12 2002
> +++ php4/pear/scripts/pearcmd-remote-list.php Thu Feb 7 15:50:08 2002
> @@ -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) {
>
>
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc