]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
this is a common error
authorTom Gilbert <tom@linuxbrit.co.uk>
Thu, 14 Jul 2005 21:01:03 +0000 (21:01 +0000)
committerTom Gilbert <tom@linuxbrit.co.uk>
Thu, 14 Jul 2005 21:01:03 +0000 (21:01 +0000)
rbot/dbhash.rb

index 1801a38f627fc59b4f52cd3195fe3508ba861c18..5ae2ba87cb0d2d8dd439e8fc59d20906d1f57647 100644 (file)
 # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-require 'bdb'
+begin
+  require 'bdb'
+rescue Exception => e
+  puts "Got exception: "+e
+  puts "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"
+  exit 2
+end
+
 # make BTree lookups case insensitive
 module BDB
   class CIBtree < Btree