Customize Errors from method

I have this:

begin
sage = Net::Telnet::new( ‘Host’ => sage_unit,
‘Prompt’ => />/
)
rescue TimeoutError
fail “Connection timed out, waiting to reconnect.”
end

It outputs the text but also it gives the links for stack trace and
stuff. Is there a way to just get the text back and that is all?? I
do not want errors to consume the whole page just a small text field.

On Fri, Aug 1, 2008 at 8:52 PM, Me [email protected] wrote:

It outputs the text but also it gives the links for stack trace and
stuff. Is there a way to just get the text back and that is all?? I
do not want errors to consume the whole page just a small text field.

Did you try $VERBOSE = nil ?

What does this have to do with Rails?


Greg D.
http://destiney.com/

This is part of some telnet code in a model.