commit c42e348488e042c5f2121fa9bde5f83c79fdbaa1
parent cc96740b66eb1f007dff0173934515884d0f83f7
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Wed, 20 Sep 2006 09:59:58 -0700
[project @ d58703d30d46be9d7efedeb3eb34c571ad373552]
[project @ 111]
revert to silent recovery from error... xmessage & terminal are annoying
Diffstat:
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/wmiirc b/wmiirc
@@ -23,16 +23,6 @@ require 'logger'
LOG = Logger.new(__FILE__ + '.log', 5)
-# Provide a means by which the user can rescue themselves.
-def throw_life_saver aError
- system 'xterm &'
-
- IO.popen('xmessage -file -', 'w') do |f|
- f.puts aError.inspect, aError.backtrace
- end
-end
-
-
LOG.info "starting"
begin
@@ -40,11 +30,12 @@ begin
rescue => e
LOG.error e
- throw_life_saver e
+
+ LOG.info "recovering from above error"
+ retry
rescue Exception => e
LOG.fatal e
- throw_life_saver e
end
LOG.info "stopping"