diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-14 21:01:03 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-14 21:01:03 +0000 |
commit | 2a1834f5bc0a3f3543033e8fe4ddecdb041627f5 (patch) | |
tree | 57b52e1974a11ff7aa4bb9c22ca7e1d65fc05b1c /rbot/dbhash.rb | |
parent | c4158048419c97a51108b33557796d1004c777cb (diff) |
this is a common error
Diffstat (limited to 'rbot/dbhash.rb')
-rw-r--r-- | rbot/dbhash.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rbot/dbhash.rb b/rbot/dbhash.rb index 1801a38f..5ae2ba87 100644 --- a/rbot/dbhash.rb +++ b/rbot/dbhash.rb @@ -19,7 +19,14 @@ # 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 |