comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to suppres warning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to suppres warning [message #62984 is a reply to message #62981] Wed, 22 October 2008 05:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ingo von Borstel writes:

> is there a way to suppress warnings like
> % Type conversion error: Unable to convert given STRING to Double.
> % Detected at: READ_TABLE 58 /home/ingo/idltools/read_table.pro
> in order to not spam the console entirely? I'd rather have the programme
> issue one warning for the entire read process instead of one for each
> line of the table I'm reading...
>
> I've been looking through the docs, but it was my impression that the
> usage of on_error doesn't help...

If we told you how to suppress error messages, I'm pretty sure
you would be back here in five minutes wondering how to prevent
crap in your input variables.

I don't think we can win on this one. Error messages do tend to
disappear when you write the code correctly. And nothing
focuses the mind so much as an entire screen of someone
yelling at you. :-)

Cheers,

David

P.S. The one person I know who (accidentally) suppressed
*all* error messages (by borrowing a start-up file from
someone who was a sorrier programmer than she was) was
the most confused, unhappy programmer on the planet.
Very difficult to do your job without feedback.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: QUESTION: is there a command in idl which could clean up memory pieces?
Next Topic: ITK Interface

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:49:52 PDT 2025

Total time taken to generate the page: 0.00620 seconds