From: Giuseppe Bilotta Date: Mon, 24 Oct 2011 08:44:09 +0000 (+0200) Subject: Exit for good when getting a DBFatal error X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=00a72a8bb44dc85fa4d7abf4ac9b9813c26ecfcd;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Exit for good when getting a DBFatal error --- diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index e740e64b..92f5fe55 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -987,6 +987,11 @@ class Bot end connect + rescue DBFatal => e + fatal "fatal db error: #{e.pretty_inspect}" + DBTree.stats + log_session_end + exit 2 rescue Exception => e error e will_wait = true