From 00a72a8bb44dc85fa4d7abf4ac9b9813c26ecfcd Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 24 Oct 2011 10:44:09 +0200 Subject: Exit for good when getting a DBFatal error --- lib/rbot/ircbot.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3