# Customize Errors from method

**URL:** <https://www.ruby-forum.com/t/customize-errors-from-method/144793>\
**Category:** Rails\
**Created:** [August 2, 2008, 3:53am UTC](https://www.ruby-forum.com/t/customize-errors-from-method/144793 "2008-08-02T03:53:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2008, 3:53am UTC](https://www.ruby-forum.com/t/customize-errors-from-method/144793/1 "2008-08-02T03:53:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 3, 2008, 9:56am UTC](https://www.ruby-forum.com/t/customize-errors-from-method/144793/2 "2008-08-03T09:56:56Z")

</div>

On Fri, Aug 1, 2008 at 8:52 PM, Me [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 4, 2008, 4:59am UTC](https://www.ruby-forum.com/t/customize-errors-from-method/144793/3 "2008-08-04T04:59:01Z")

</div>

This is part of some telnet code in a model.
