Forum: Ruby some questions on ruby - is any variable in ruby can control trace back limit?

7b3d60a2de005a458e45f2722345f3c6?d=identicon&s=25 Previn Lin (previn)
on 2013-10-24 10:56
When click CTRL-C when ruby script running, it always give trace back.

Is there way to make no trace back?

I know setting below can solve this issue, but I want to know whether
any variable in ruby(maybe somthing like backtrace_display_limit = 0)
can get same function?

begin
  My::App.do(things)
rescue Interrupt
  warn "\nAborted!"
  exit 1
end
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.