[dev] PEAR errors

Chuck Hagenbuch chuck at horde.org
Mon Apr 14 22:07:04 PDT 2003


Quoting "Brent J. Nordquist" <bjn at horde.org>:

> Is
> 	return PEAR::raiseError(...);
>
> preferred over
> 	return new PEAR_Error(...);

Yes.

> BTW, HEAD horde/lib/VFS.php line 76 isn't parameterized/gettextized;
> should it be?

Debatable. I've tried to make errors that are logged always english, for the
benefit of admins reading the logs. We don't really log stuff directly from
the VFS package, though, so we should probably gettext them all.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"... It is not more light we need, but more warmth! We die of cold, not of
darkness. It is not the night that kills, but the frost." - Miguel de
Unamuno


More information about the dev mailing list