]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/dbhash.rb
utils: htmlinfo filtering doc cleanups
[user/henk/code/ruby/rbot.git] / lib / rbot / dbhash.rb
index 3220fb7f8cf0918ed3281217010bb24784e28b52..dd61c7207161e90e8a92347e2d8245b480bca6d7 100644 (file)
@@ -1,8 +1,17 @@
+#-- vim:sw=2:et
+#++
+#
+# :title: Berkeley DB interface
+
 begin
   require 'bdb'
+rescue LoadError
+  fatal "rbot couldn't load the bdb module, perhaps you need to install it? try: http://www.ruby-lang.org/en/raa-list.rhtml?name=bdb"
 rescue Exception => e
-  error "Got exception: #{e.pretty_inspect}"
-  error "rbot couldn't load the bdb module, perhaps you need to install it? try: http://www.ruby-lang.org/en/raa-list.rhtml?name=bdb"
+  fatal "rbot couldn't load the bdb module: #{e.pretty_inspect}"
+end
+
+if not defined? BDB
   exit 2
 end