-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hans Dieter Pearcey wrote:
> On Thu, Mar 29, 2007 at 03:30:08PM +0100, Oliver Jeeves wrote:
>> The problem is, whenever I die, I get a Mason stack trace object,
>> instead of just the string I specify. Whereas this is useful in some
>> places, in others it is not.
>>
>> How can I turn this off for particular chunks of code?
> 
> It might work to e.g.
> 
>   eval { local $SIG{__DIE__}; ... code ... }

or, if all you want is your error message, you can use [EMAIL PROTECTED]>error
(or [EMAIL PROTECTED]>as_brief, in terms of HTML::Mason::Exceptions).

- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----

iD8DBQFGDLujtZHp/AYZiNkRAi9OAJ9yzLU0kVJhrVofX/wwA5mU9yz92gCeNeaw
33I43xLDSShE+34uKfLSCxs=
=f18y
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to