[Fwd: Re: [scmbug-users] Error on changing status of bugs with Bugzilla 3.4.x]

Max Kanat-Alexander mkanat at bugzilla.org
Thu Apr 15 23:24:19 UTC 2010


On 04/15/2010 10:04 AM, Kristis Makris wrote:
> How does bugzilla 3.2/3.4/3.6 handle errors with Bug::check() ? Does it
> throw exceptions with die() ? Is this necessary ?

	It calls ThrowUserError. By default this calls exit(), but you can
switch to Bugzilla->error_mode(ERROR_MODE_DIE) before calling it (and
then switch back to the normal error mode) if you'd like.

	However, generally you shouldn't be calling things inside of an
eval--there's always ways to check things for yourself. What
specifically are you trying to do?

> I'm sure you folks must have a more user-friendly API than this. We must
> be missing something.

	Yeah, the WebService is the API.

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list