os_generate_error and postmortems

Tom Hughes tom at compton.nu
Tue Aug 24 20:01:38 BST 2004


In message <4ce39ceac5sbellon at sbellon.de>
          Stefan Bellon <sbellon at sbellon.de> wrote:

> I'm stumbling over the fact that os_generate_error() always produces a
> postmortem with stack trace which I don't want. How should I do it if I
> only want an error message (printed on screen when from within the CLI
> or in an error box when from within the WIMP) and a return code?

Not really an OSLib question...

Try trapping SIGOSERROR which is what I would expect it to raise. That
will probably stop all the default actions though, so you will need to
report the error yourself.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/



More information about the oslib-user mailing list