[VPM] suppress STDERR
Darren Duncan
darren at DarrenDuncan.net
Sat May 14 23:20:23 PDT 2005
At 11:06 PM -0700 5/14/05, Jeremy Aiyadurai wrote:
>Hello all,
>i am in the process of writing a module. How do I suppress all error
>messages related to the the internal working of the module, with out
>suppressing all std err messages.
>eg. how do i suppress error messages for the module only?
>Thanks in advance,
>Jeremy A.
If you wrap your code in an 'eval' block, then any errors generated
within it will not display. That said, normally your code will do a
test after the eval block finishes running to check if there was a
problem, and then do some appropriate action. You don't actually
want to ignore errors, though it is reasonable to change how they are
reacted to. -- Darren Duncan
More information about the Victoria-pm
mailing list